[R] (no subject)

2008-08-14 Thread Laura Cordero Llana
Hi, I am working with R and I have some doubts. I working with daily data of MNEE parameter for 6 years (2001:2006). What I am trying to do is to replace missing data for a particular period of time of a particular year, with the mean of that variable for the rest of the years during that given

[R] nls errors

2008-08-15 Thread Laura Cordero Llana
Hi, I am trying to use a non linear regresion form like: f(x) ~ fmax*(1-exp(-a*(x-c)). > nls.NEE.fill <- nls(NEE ~ -NEE.max*(1-exp(-alpha*(PAR-I))), > start=list(NEE.max=-25,alpha=5,I=20)) I have given random values to a and c (alpha and I). But it gives my an error: Error in nlsModel(f

[R] atomic value

2008-08-19 Thread Laura Cordero Llana
Hi all, I am trying to run a code using the function "tapply", and after test it and see that the value is atomic, when I run the script it gives an error: Error in sort(unique.default(x), na.last = TRUE) : 'x' must be atomic for (i in 1:50){ year.name <- paste("year",i,sep="") year.t