Try this:
format(data$start, "%Y")
On Sun, Aug 29, 2010 at 11:32 AM, André de Boer wrote:
> Hi,
>
> Sorry for this simple question but I searched the internet and can't find
> the answer.
>
> >From a date I want the year extracted:
> > data$start[1
> [1] "2006-11-01"
>
> Thanks for the answer,
Hi,
Sorry for this simple question but I searched the internet and can't find
the answer.
>From a date I want the year extracted:
> data$start[1
[1] "2006-11-01"
Thanks for the answer,
Andre
[[alternative HTML version deleted]]
__
R-help@r-pr
2 matches
Mail list logo