eclairs eclairs - 1 month ago 4x
R Question

Date: Date type in csv is uploaded as integer in R

I had uploaded a csv containing a date column. When i did

) in R and checked the typeof all columns, it displays all columns as integer type.
I was able to convert character types successfully by using :


When trying the similar for date (values as- 17-JAN-95) as:$col5,"%Y%M%D")

The values returned are:
please suggest the correct approach for modifying the datatype.


Try this

strptime(mydata$col5, '%d-%b-%y')