[R] R gnome produces errors?: a clue!
Agustin Lobo
alobo at ija.csic.es
Fri Feb 22 12:15:11 CET 2002
I've got something that might be a clue to understand
the strange behaviour of lda in R --gui="gnome":
in R --vanilla:
library(MASS)
load("mod23puriflda.rda")
> a <- lda.default(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F)
works fine. I save lda.default as a local rda file:
> milda.nognome <- lda.default
> save(milda.nognome,file="milda.nognome.rda")
Then in R --vanilla --gui="gnome"
library(MASS)
load("mod23puriflda.rda")
> a
<-lda.default(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F,method="moment")
Error in lda.default(x = mod23puriflda[, 2:5], grouping = mod23puriflda[,
:
length of dimnames[2] not equal to array extent
In addition: Warning message:
variables are collinear in: lda.default(x = mod23puriflda[, 2:5], grouping
= mod23puriflda[,
Does not work, BUT:
> load("milda.nognome.rda")
> a <-
milda.nognome(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F,method="moment")
WORKS!!
and, still in R --vanilla --gui="gnome", I save lda.default to another
rda file:
> milda.gnome <- lda.default
> save(milda.gnome,file="milda.gnome.rda")
Then back to R --vanilla
> load("milda.gnome.rda")
> a <- milda.gnome(x=mod23puriflda[,2:5],grouping=mod23puriflda[,6],CV=F)
Error in milda.gnome(x = mod23puriflda[, 2:5], grouping = mod23puriflda[,
:
length of dimnames[2] not equal to array extent
In addition: Warning message:
variables are collinear in: milda.gnome(x = mod23puriflda[, 2:5], grouping
= mod23puriflda[,
Does not work !!
Therefore, gnome is really changing something, but what?
Agus
Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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