[R] Date problem
norden at cict.fr
Tue Mar 14 19:30:39 CET 2006
I have some "stupid" problems managing "date" data.
I have a colomn "date", which I converted from a character representation:
For one part of the analysis, I'm interested only in the month and the
year, so I did:
This returns me "02/06", but this is an object of class "character" and
I can't convert it into an object of class "Date". Doing
strptime(m.y,format="%m/%y") or as.Date(m.y,format="%m/%y") returns me NA
How can a convert this colomn "m.y" in a Date class?
Actually, I need it to plot fruiting data against time (month and year).
Because I have many values of seeds in a month, I used the function tapply:
But plot(x=names(seeds),y=seeds) doesn't work. Does anyone know an
Thank you for your time,
More information about the R-help