Skip to content
Prev 309783 / 398506 Next

Changing Date Variables as Continuous Variables

Here is how to convert your column of factors into Dates:
+ 2/20/2011
+ 3/4/2011')
'data.frame':   3 obs. of  1 variable:
 $ V1: Factor w/ 3 levels "2/10/2011","2/20/2011",..: 1 2 3
V1       date
1 2/10/2011 2011-02-10
2 2/20/2011 2011-02-20
3  3/4/2011 2011-03-04
'data.frame':   3 obs. of  2 variables:
 $ V1  : Factor w/ 3 levels "2/10/2011","2/20/2011",..: 1 2 3
 $ date: Date, format: "2011-02-10" "2011-02-20" "2011-03-04"
On Sat, Nov 3, 2012 at 8:09 PM, hoguejm <hoguejm at gmail.com> wrote: