[R] Zeitreihen problem
    Thomas W Blackwell 
    tblackw at umich.edu
       
    Mon May 12 17:59:43 CEST 2003
    
    
  
as.character()  converts from a factor back to character strings.
In this context,
result <- strptime(as.character(disc[ ,1]), format="%m/%d/%y")
or something like that.  Thanks for asking a second time:  when I
saw the earlier response, I wondered whether this conversion would
be a problem.
-  tom blackwell  -  u michigan medical school  -  ann arbor  -
On Mon, 12 May 2003, 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")
>
> Wojtek Musial
    
    
More information about the R-help
mailing list