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 ~ ., Iris, prior = c(1,1,1)/3, subset = train)



>Error in if (targetlist[i] == stringname) { : argument is of length zero

System: MacOSX 10.5.8
R:  2.10.0


-- 
Gregory Riddick, PhD.
CRTA Research Fellow

National Institutes of Health
National Cancer Institute, Neuro-Oncology Branch
http://home.ccr.cancer.gov/nob/

37 Convent Drive
Building 37, Room 1142
Bethesda, MD 20892-8202

Phone: 301-443-2490
Fax: 240-396-5920

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to