Re: [R] Loading in Large Dataset + variables via loop

2012-07-15 Thread Rui Barradas
e, collapse = "") : dim(X) must have a positive length A.K. - Original Message - From: Rui Barradas To: cmc0605 Cc: r-help@r-project.org Sent: Sunday, July 15, 2012 8:12 AM Subject: Re: [R] Loading in Large Dataset + variables via loop Hello, Why do you need 9 variabl

Re: [R] Loading in Large Dataset + variables via loop

2012-07-15 Thread Rui Barradas
Hello, Why do you need 9 variables in your environment if they are time series that correspond to the same period? You should use time series functions. #install.packages('zoo') library(zoo) # Make up a dataset Year <- seq(from=as.Date("1901-01-01"), by="year", length.out=100) dat <- data.fra

[R] Loading in Large Dataset + variables via loop

2012-07-15 Thread cmc0605
Hello, I'm new to R with a (probably elementary) question. Suppose I have a dataset called /A/ with /n/ locations, and each location contains within it 3 time series of different variables (all of 100 years length); each time series is of a weather variable (for each location there is a temperatur