Re: [R] Help with creating a ts (time series) object with daily sampling values

2011-03-24 Thread Gabor Grothendieck
On Thu, Mar 24, 2011 at 3:25 PM, Pamela Allen wrote: > > > > Hi All, > > > > I have a data set of daily measurements of river flow. > I would like to create a “ts” object from this data. > > > > Here’s a sample data set: > > date <- as.Date(c(1:300), format="%Y") > > year=as.numeric(format(date, f

[R] Help with creating a ts (time series) object with daily sampling values

2011-03-24 Thread Pamela Allen
Hi All, I have a data set of daily measurements of river flow. I would like to create a "ts" object from this data. Here's a sample data set: date <- as.Date(c(1:300), format="%Y") year=as.numeric(format(date, format = "%Y")) month=as.numeric(format(date, format = "%m")) julianday=

[R] Help with creating a ts (time series) object with daily sampling values

2011-03-24 Thread Pamela Allen
Hi All, I have a data set of daily measurements of river flow. I would like to create a “ts” object from this data. Here’s a sample data set: date <- as.Date(c(1:300), format="%Y") year=as.numeric(format(date, format = "%Y")) month=as.numeric(format(date, format = "%m")) juliand