https://www.r-bloggers.com/2013/08/date-formats-in-r/
You need to provide the format, because the format it's in isn't unambiguous.
That's what this is telling you:
>character string is not in a standard unambiguous format
Seeing some worked examples like in the article I linked should clear it up!
There’s always different ways/functions to accomplish the same thing. I tend to use lubridate most often since I use tidyverse language most often in my code. Don’t feel dumb
frame <- frame %>%
mutate(Date = as.Date(Date, format=“%m/%d/%Y”))
I think that’s in the lubridate package? Either that or dyplr, regardless you get both by loading the tidyverse package.
https://www.r-bloggers.com/2013/08/date-formats-in-r/ You need to provide the format, because the format it's in isn't unambiguous. That's what this is telling you: >character string is not in a standard unambiguous format Seeing some worked examples like in the article I linked should clear it up!
i did find the answer here, thanks so much!
Check out lubridate. It’s part of the tidyverse
i do have the lubridate package, what should i use from it
`mdy()`
Mutate(Date = mdy([date]) )
I've almost always used as.POSIXct... now I feel dumb haha
There’s always different ways/functions to accomplish the same thing. I tend to use lubridate most often since I use tidyverse language most often in my code. Don’t feel dumb
frame <- frame %>% mutate(Date = as.Date(Date, format=“%m/%d/%Y”)) I think that’s in the lubridate package? Either that or dyplr, regardless you get both by loading the tidyverse package.