I am searching for a function in R, that quickly transforms text like "07/04/1995" into the date format in R.
Every help is appreciated!
Best regards Jakob
I am searching for a function in R, that quickly transforms text like "07/04/1995" into the date format in R.
Every help is appreciated!
Best regards Jakob
One option is lubridate
, which has a set of functions that convert text to date based on the order of the month, day and year.
library(lubridate)
mdy("07/04/1995")
See the cheat sheet for more.