You can use the 'ts' function. Example
df <- ts(your_data_frame, start=c(1990,1), #The initial date of your data end=c(2000,12), #The final date of your data or frequency=12)#The frequency of your data, so you don't need of the 'end' argument See ?ts and ?as.ts for more. -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 29/08/2007, Shubha Vishwanath Karanth <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have a dataframe of trading dates along with the corresponding prices. > I need to convert this into a time series object. How do I do this with > my price values being the time series object and the dates/time being > the trading dates. > > > > > > BR, Shubha > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]]
______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.