Date: Date type in csv is uploaded as integer in R -
i had uploaded csv containing date column. when did read.csv(
) in r , checked typeof columns, displays columns integer type. able convert character types using :
as.character(mydata$col3)
when trying similar date (values as- 17-jan-95) as:
as.date(mydata$col5,"%y%m%d")
the values returned are: please suggest correct approach modifying datatype.
try this
strptime(mydata$col5, '%d-%b-%y')
Comments
Post a Comment