Re: [R] Date variable error

2010-12-14 Thread Ben Bolker
nps.gov> writes: > > Greetings > In attempting to create a date variable based on month (e.g., > February, April, etc.) and year (e.g., 2006) data, wherein I converted > Month to a factor with Jan=1...Dec=12, I used the following command: > > data$Date<-mdy.date(month=data$Month,day=15,ye

[R] Date variable error

2010-12-13 Thread Kurt_Helf
Greetings In attempting to create a date variable based on month (e.g., February, April, etc.) and year (e.g., 2006) data, wherein I converted Month to a factor with Jan=1...Dec=12, I used the following command: data$Date<-mdy.date(month=data$Month,day=15,year=data$Year) however, I get a mes