Search code examples
rmetadatatmcorpustagged-corpus

How can I change month/day/year character object format into date in Corpus metadata?


I am trying to change the metadata in a Corpus but I have the day column displayed as 7/25/2014 and I want to make sure the console is understanding it as a date


Solution

  • This is it:

    > library(lubridate)
    > data$File.Date <- mdy(data$File.Date)
    > class(data$File.Date)
    [1] "Date"