2
The function dmy
converts dates into day/month/year format only. Note that the Date column has a time in addition to the date. Use the function dmy_hms
, in which hms
means hour, minute and second respectively.
2
3
The function dmy
converts dates into day/month/year format only. Note that the Date column has a time in addition to the date. Use the function dmy_hms
, in which hms
means hour, minute and second respectively.
Browser other questions tagged r
You are not signed in. Login or sign up in order to post.
All right Marcos,
– Rogério
To solve this problem I convert this column to date using: $Date <- as data. Date(data$Date) *** original <dttm>*** format and then I applied the dmy function of the lubricated package and it did not work, but I confess that I am not sure that the arguments are correct. Based on this information which script you would use to change this column to day-month-year format?
– Rogério
@Rogério Não use
as.Date
, do directlydados$Date <- mdy_hms(etc)
. And notice that there are functionsdmy_hms
, with first day andmdy_hms
with month first. In your case it is month first.– Rui Barradas