Transforming character to date in R

Viewed 27

I have a column of dates formatted as "character". Here is the format output of the whole column and an individual data point:

typeof(df$date) [1] "character"

typeof(df$date[3]) [1] "character"

df$date[3] [1] "1/8/17 8:00"

I tried so many different ways to convert this into date, but nothing worked so far. Any suggestions? The ultimate goal is to get a date input on Shiny and filter this data based on date column. Thanks!

0 Answers
Related