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
<no code included>
# Resulting Error
Error in if (targetlist[i] == stringname) { : argument is of length
zero
Cannot reproduce on setup possibly similar to yours:
> sessionInfo()
R version 2.10.0 Patched (2009-10-29 r50258)
x86_64-apple-darwin9.8.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] splines stats graphics grDevices utils datasets
methods base
other attached packages:
[1] MASS_7.3-3 plyr_0.1.9 survey_3.18 Design_2.3-0
Hmisc_3.7-0
[6] survival_2.35-7 lattice_0.17-26
loaded via a namespace (and not attached):
[1] cluster_1.12.1 grid_2.10.0 tools_2.10.0
My Current R Installation:
MacOSX: 10.5.8
R: 2.10.0
What is your sessionInfo(), requested in Posting Guide.
--
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
--
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
______________________________________________
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.