Extract a date from a date-time object in a data frame

## create a miniature example data frame
 > z = data.frame(time=Sys.time())
 > z
                 time
1 2009-09-14 11:56:42
 > as.Date(z$time)
[1] "2009-09-14"
 
tips/datetime2date.txt · Last modified: 2009/09/14
 
Recent changes RSS feed R Wiki powered by Driven by DokuWiki and optimized for Firefox Creative Commons License