Re: [R] need help converting data.frame to time series

2009-02-04 Thread Gabor Grothendieck
Without the code we can't tell what the problem is but try this noting that ts is not normally used for daily data. Using zoo package L is a list of time series and z merges them into a multivariate series. Read the 3 zoo vignettes (pdf documents) that come with zoo: Lines <- "DATE ,STOCK

[R] need help converting data.frame to time series

2009-02-03 Thread Somani, Dinesh K
Hi I am a new R user and need some help converting a data frame object to time series. 1. My input is a CSV file, contents something like these: DATE ,STOCK ,RETURN-A ,RETURN-B, etc. 2009/02/02,A ,0.01 ,0.011 2009/01/30,A ,0.01 ,0.011 2009/01/29,A ,0.