[R] changing the Date format.

Patrick Connolly p_connolly at slingshot.co.nz
Wed Aug 26 13:09:49 CEST 2009


On Wed, 26-Aug-2009 at 03:48AM -0700, rajclinasia wrote:

|> 
|> Hi everyone,
|> 
|> i have a data frame called 'sample'. in that 'sample' data frame variable
|> called 'starts' is there like this
|> 
|> starts
|> 37987
|> 37988
|> 37989
|> 37990 
|> 37991
|> 
|> now i want change that variable into 'yyyy-mm-dd' format. can any body help
|> in this aspect.

Check out the as.Date function.
?as.Date

HTH

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___    Patrick Connolly   
 {~._.~}                   Great minds discuss ideas    
 _( Y )_  	         Average minds discuss events 
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)  	                      ..... Eleanor Roosevelt
	  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.




More information about the R-help mailing list