I am new to rstudio and running trying to extract the date only from a date time column.
The date/time is formatted like this:
4/12/2016 12:00:00 AM
I tried this script:
data_frame$date <- as.Date (data_frame$datetime)
print ("Modified DataFrame")
That worked except that for a number of rows I get an N/A value in the date column where I can clearly see there is a time in the original.