Re: [R] nls NAs

2012-10-14 Thread Elizabeth Webb
Hello all- I got some help on this. While it did not fix the problem with nls, one can get around the problem by creating a data frame with the NAs excluded. As follows: goodidx<-which(! is.na(warming$T10cm)) warming2<-warming[goodidx,] warm.10<-nls(umoles60~alpha*exp(beta*T10cm),start = start,

[R] nls NAs

2012-10-11 Thread Elizabeth Webb
Hi- I am using the following code: start=c(alpha=0.4,beta=0.4) warm.10<-nls(warming$umoles60~alpha*exp(beta*warming$T10cm),start = start,data=warming,na.action=na.omit) This code works for other columns in my dataset that are similar to $T10cm but the code does not work for this particular