Re: [R] Combining month and year into a single variable

2012-02-01 Thread Gabor Grothendieck
On Wed, Feb 1, 2012 at 5:26 PM, Sam Albers wrote: > Hello all, > > ## I am trying to convert some year and month data into a single > variable that has a date format so I can plot a proper x axis. > ## I've made a few tries at this and search around but I haven't found > anything. I am looking for

[R] Combining month and year into a single variable

2012-02-01 Thread Sam Albers
Hello all, ## I am trying to convert some year and month data into a single variable that has a date format so I can plot a proper x axis. ## I've made a few tries at this and search around but I haven't found anything. I am looking for something of the format "%Y-%m" ## A data.frame df <- data.f