You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function dmy() is not behaving the way I would expect on a messy dataset I have where 2 days were entered by mistake as 8&9 june 06. dmy() returns "2006-09-08" whereas as_date() is returning NA (like I would have expected).
library(lubridate)
dmy("8&9 june 06")
# [1] "2006-09-08" <-- wrong!!
as_date("8&9 june 06")
# [1] NA <-- What I would expect
Brief description of the problem
The function
dmy()
is not behaving the way I would expect on a messy dataset I have where 2 days were entered by mistake as8&9 june 06
.dmy()
returns "2006-09-08" whereasas_date()
is returningNA
(like I would have expected).Session Info:
The text was updated successfully, but these errors were encountered: