Re: [R] matrix indexing in 'for' loop?

2010-12-22 Thread govindas
Thank you all once again .. Yeah, its working now. -- Regards, Mahalakshmi Graduate Student #20, Department of Geography Michigan State University East Lansing, MI 48824 Quoting Liviu Andronic : > On Wed, Dec 22, 2010 at 6:39 PM,  wrote: >> Thank you both for your suggestions. I have anothe

Re: [R] matrix indexing in 'for' loop?

2010-12-22 Thread govindas
Thank you both for your suggestions. I have another question - is there a specific way to access the individual elements of a 'list' variable? i.e.  dmi = matrix(rnorm(20),4,5) soi = matrix(rnorm(20),4,5) pe = matrix(rnorm(20),4,5) y <- list(dmi, soi, pe) y[[1]]   gives [,1]       [,2

[R] matrix indexing in 'for' loop?

2010-12-21 Thread govindas
Hi, I am having trouble with matrices. I have 2 matrices as given below, and I am interested in using these matrices inside "for" loops used to calculate correlations. I am creating a list with the names of the matrices assuming this list could be indexed inside the 'for' loop to retrieve the

[R] prob with legend in my plots!

2010-11-05 Thread govindas
Hi, I have a problem with the appearance of legend in my plots. If I specify the legend positions in characters like "topright"..etc, it appears, if i specify it in terms of coordinates like "-1, 1" .. etc, it does not appear. Can anyone help me with this? script - x.date <- as.Date(past

[R] plotting time series for particular months!

2010-11-04 Thread govindas
Hi all,  I have a matrix as given below... year month day prec 1   1980    10   1 13.4 2   1980    10   2  0.0 3   1980    10   3  0.0 4   1980    10   4  0.0 5   1980    10   5  0.0 6   1980    10   6  0.0 7   1980    10   7  0.0 8   1980    10   8  0.0 9   1980    10   9  0.0 10  1980    10 

Re: [R] doubt in climate variability analysis in R! - code

2010-10-31 Thread govindas
I am sorry, i think the link was broken..! here is the correct one!!! http://www.4shared.com/file/4zV0g3JR/RF_80-85.html [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] doubt in climate variability analysis in R! - code included!

2010-10-30 Thread govindas
--- Begin Message --- I am sorry, i think the link was broken..! here is the correct one!!![1] http://www.4shared.com/file/4zV0g3JR/RF_80-85.html -- Regards, Mahalakshmi Graduate Student #20, Department of Geography Michigan State University East Lansing, MI 48824

Re: [R] doubt in climate variability analysis in R! - code included!

2010-10-29 Thread govindas
the following code was used library(akima) library(clim.pact) nc.1 <- "RF_80-05.nc" nc.rf.in <- open.ncdf(nc.1) x1 <- retrieve.nc(nc.1, v.nam="Rainfall",l.scale=FALSE,  x.rng=c(70, 80), y.rng=c(10, 13.5)) #dimension is checked for the subset. (lon, lat, time) is changed as (time, lat,

[R] doubt in climate variability analysis in R!

2010-10-29 Thread govindas
Hello all, I am trying to use "clim.pact" package for my work, but since this is the beginning for me to use gridded datasets in "R", I am having some trouble. I want to do seasonal analyses like trends, anomalies, variograms, EOF and probably kriging too to downscale my 1 degree gr