Re: [R] Error running lda example: Session Info

2009-11-17 Thread Greg Riddick
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]) c s v 22 23 30 z - lda(Sp ~ ., Iris, prior = c(1,1,1)/3, subset = train) Error in if (targetlist[i] ==

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 ~ .,

[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

[R] Problem with package SNOW on MacOS X 10.5.5

2008-12-31 Thread Greg Riddick
Hello All, I can run the lower level functions OK, but many of the higher level (eg. parSApply) functions are generating errors. When running the example (from the snow help docs) for parApply on MacOSX 10.5.5, I get the following error: cl - makeSOCKcluster(c(localhost,localhost))