When I run example(princomp) I get the following error message: prncmp> ## The variances of the variables in the prncmp> ## USArrests data vary by orders of magnitude, so scaling is appropriate prncmp> (pc.cr <- princomp(USArrests)) # inappropriate Error in cov.wt(z) : 'x' must contain finite values only Seth Roberts -- blog.sethroberts.net www.shangriladiet.com boards.shangriladiet.com skype twoutopias fax 267 222 4105 510 418 7753 (Berkeley) 1 368 117 0784 (Beijing) [[alternative HTML version deleted]]
twoutopias at gmail.com wrote:> When I run > > example(princomp) > > I get the following error message: > > prncmp> ## The variances of the variables in the > prncmp> ## USArrests data vary by orders of magnitude, so scaling is > appropriate > prncmp> (pc.cr <- princomp(USArrests)) # inappropriate > Error in cov.wt(z) : 'x' must contain finite values onlytry rm(x) before you run the example; I think you might have an 'x' hanging around in your workspace. I had no trouble with the example run in a clean workspace. > sessionInfo() R version 2.10.1 Patched (2009-12-21 r50796) i386-pc-mingw32 locale: [1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 [3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C [5] LC_TIME=English_Canada.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] fortunes_1.3-6 loaded via a namespace (and not attached): [1] tools_2.10.1 > -Peter Ehlers> > Seth Roberts > > >-- Peter Ehlers University of Calgary 403.202.3921