[R] Issue with Transform function in R

tom at maladmin.com tom at maladmin.com
Thu Jul 21 15:56:01 CEST 2016


Not sure I can translate the format of your Date column correctly, however the command
DF1$Date <- as.Date(DF1$Date, format=’formatstr’)

Will convert the dates into a format correctly handled by R.
?strptime 

Should give you an idea of what formatstr should look like. 
I.e. if 
date = 160721
as.Date(date, format=”%y%M%d”)



From: Bhaskar Mitra
	[[alternative HTML version deleted]]



More information about the R-help mailing list