Re: [R] Error running lda example from Help File (MASS library )

2009-11-16 Thread Greg Riddick
The actual code for the lda example is below. If anyone can reproduce the error, let me know. Thanks. library(MASS) Iris <- data.frame(rbind(iris3[,,1], iris3[,,2], iris3[,,3]), Sp = rep(c("s","c","v"), rep(50,3))) train <- sample(1:150, 75) table(Iris$Sp[train]) z <- lda(Sp

Re: [R] Error running lda example from Help File (MASS library )

2009-11-15 Thread David Winsemius
On Nov 14, 2009, at 7:02 PM, Greg Riddick wrote: Hello all, I'm trying to run lda() from the MASS library but the Help example generates the following error: #Code from example in lda Help file # Resulting Error Error in if (targetlist[i] == stringname) { : argument is of length zero

Re: [R] Error running lda example from Help File (MASS library )

2009-11-14 Thread Ronggui Huang
I don't run into any problem when runing examples from lda help file. > sessionInfo() R version 2.10.0 Patched (2009-11-09 r50375) i386-pc-mingw32 locale: [1] LC_COLLATE=Chinese_People's Republic of China.936 [2] LC_CTYPE=Chinese_People's Republic of China.936 [3] LC_MONETARY=Chinese_People's Rep

[R] Error running lda example from Help File (MASS library )

2009-11-14 Thread Greg Riddick
Hello all, I'm trying to run lda() from the MASS library but the Help example generates the following error: #Code from example in lda Help file # Resulting Error >Error in if (targetlist[i] == stringname) { : argument is of length zero My Current R Installation: MacOSX: 10.5.8 R: 2.10.0