Update your browser or use a newer device. We no longer support this version, so parts of Varsity Tutors may not work.
Dismiss
R Programming Quiz
10 questions · no time limit
0:00
Finish quiz
TEXT AND DATES
Question 1
of 10
Flag for review
No time limit
Current
Answered
Flagged
Not seen
Consider the following code:
x <- c("12-01-2024", "12/01/2024", "12.01.2024")
dates <- lubridate::mdy(x)
Which result should be expected?
A
All three values parse as December 1, 2024 despite their different separators.
B
Only the hyphenated and slashed values parse; the dotted value becomes
NA
.
C
All three values parse as January 12, 2024 because separators determine the order.
D
Only the slashed value parses because
mdy()
requires slash-separated components.
YOUR PROGRESS
10
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
1
2
3
4
5
6
7
8
9
10
KEYBOARD
Pick an answer
A
B
C
D
Next question
↵
→
Previous
←
Flag for review
F