Re: [R] sample period specification

2010-04-18 Thread Dennis Murphy
Hi: Here's a simple, manufactured example: x <- rnorm(61) x <- ts(x, start = 1950, end = 2010) plot(x) Is that what you were looking for? HTH, Dennis On Sun, Apr 18, 2010 at 9:02 AM, Kapur, Muneesh wrote: > I am using R and I input data through excel files. I am able to read the > excel file

Re: [R] sample period specification

2010-04-18 Thread jim holtman
It sounds like your date column is a 'factor'. Please at least provide an 'str' of the data that you are using. You might want to read is in suppressing the conversion to factors (not familar with the xlsreadwrite, but read.table as an 'as.is' parameter). On Sun, Apr 18, 2010 at 12:02 PM, Kapur,

[R] sample period specification

2010-04-18 Thread Kapur, Muneesh
I am using R and I input data through excel files. I am able to read the excel files into R through xlsreadwrite package. My query: is how to tell the sample period of the data. For example, data in my file are annual and start from the year 1950 and go up to the year 2010. the R, however, reads