Re: [Rd] bug in princomp example (PR#14167)

From: Peter Ehlers <ehlers_at_ucalgary.ca>
Date: Thu, 24 Dec 2009 17:17:56 -0700

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 only

try 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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri 25 Dec 2009 - 00:21:22 GMT

This archive was generated by hypermail 2.2.0 : Sat 26 Dec 2009 - 21:51:15 GMT