[Rd] Gnome causes different behaviour of some R functions (PR#1321)
alobo@ija.csic.es
alobo@ija.csic.es
Fri, 22 Feb 2002 14:41:19 +0100 (MET)
Full_Name: Agustin Lobo
Version: 1.4.0
OS: linux (suse 7.3)
Submission from: (NULL) (193.144.102.102)
Saving lda.default as text files from within gui="none" and from within
gui="gnome"
and comparing afterwards with diff, I get:
alobo@humboldt:> diff lda.default.gnome.txt lda.default.nognome.txt
1c1
< function (x, grouping, prior = proportions, tol = 1, method =
c("moment",
---
> function (x, grouping, prior = proportions, tol = 1e-04, method =
c("moment",
61c61
< if (all(abs(w - w0) < 0,01))
---
> if (all(abs(w - w0) < 0.01))
109c109
< dist <- 0 * dist - matrix(log(prior), n, ng, byrow = TRUE)
---
> dist <- 0.5 * dist - matrix(log(prior), n, ng, byrow = TRUE)
While lda.default works fine within R --gui="none", it produces the following
error
from within R --gui="gnome" for the same data:
> 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[,
This problem is not particular to lda.default. The following code, which works
fine from within R --gui="none", fails from within within R --gui="gnome":
> x1<-rnorm(20)
> x2<-rnorm(20)
> boxplot(list(x1=x1,x2=x2))
Error in if (any(out[nna])) stats[c(1, 5)] <- range(x[!out], na.rm = TRUE) :
missing value where logical needed
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._