Intermediate
R
Q78 / 100
What does "as.Date("2024-01-15")" return?
Correct! Well done.
Incorrect.
The correct answer is B) A Date object representing January 15, 2024, allowing date arithmetic and formatting
B
Correct Answer
A Date object representing January 15, 2024, allowing date arithmetic and formatting
Explanation
as.Date() parses a string into R's Date class, enabling operations like subtraction between dates and formatted output via format().
Progress
78/100