[R] fitting models with gnls
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Fri Sep 7 17:40:30 CEST 2001
"Antonio Olinto" <aolinto at bignet.com.br> writes:
> Error in "[<-.factor"(*tmp*, , value = grpShrunk[revOrderShrunk]) :
> Argument "i" is missing, with no default
Hmm. That probably comes from an assignment f[]<-something where f is
a factor. The same thing is seen with
f<-factor(1:3)
g<-factor(3:1)
f[]<-g
This might count as a bug in R. You could try fixing [<-.factor
yourself. The offending line would be
x[i] <- m
and might be happier as
if (missing(i)) x[] <- m else x[i] <- m
or
x[if (missing(i)) TRUE else i] <- m
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list