[R] Zeitreihen problem

Jerome Asselin jerome at hivnet.ubc.ca
Mon May 12 17:55:19 CEST 2003


How about this:

strptime(as.character(datevec), format="%m/%d/%Y")

Cheers,
Jerome

On May 12, 2003 08:36 am, Wojtek Musial wrote:
> Thanks for the answer(s), but my specific problem is to change the
> objects like
>
> > disc[1,1]
>
>  [1] 01/03/1955
>  17647 Levels: 01/01/1956 01/01/1957 01/01/1958 01/01/1959 ...
> 12/31/2002
>
> which are factors to a string like "01/03/1955". I can't find any way to
> convert it to such a string, which can then be converted using for
> example
>
> > strptime(datevec, format="%m/%d/%Y")
>
> Anyone an idea?
>
> Wojtek Musial
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list