[R] convert number back to point separated date

Alain D. dialvac-r at yahoo.de
Mon Feb 23 15:06:08 CET 2015


Dear R-List
 
I have a date column formatted dd.mm.yyyy separated by points that was converted
into a number using as.integer(date). Now I wish to convert the number back into
the original date. Something like:
 
date<-as.factor(c("07.12.2010","29.04.2013"))

dd<-as.integer(date)

as.Date(dd, origin="%d.%m.%Y")# does not work
 
Is there a way to convert "dd" back to "date"?
 
Thank you for help!
 
Best wishes
 
Alain
 
	[[alternative HTML version deleted]]



More information about the R-help mailing list