[R]  changing names numeric to a time series - solved
    Erin Hodgess 
    erinm.hodgess at gmail.com
       
    Fri Jul 16 17:28:25 CEST 2010
    
    
  
Here is the original question:
What is the best way to change a named numeric to a time series
> str(y1)
 Named int [1:730] 102 145 147 120 132 125 137 103 128 130 ...
 - attr(*, "names")= chr [1:730] "2006-01-01" "2006-01-02"
"2006-01-03" "2006-01-04" ...
>
y2 <- zoo(y1,order=names(y1))
Perfect!
Thanks though,
Erin
-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
    
    
More information about the R-help
mailing list