From ehlers at ucalgary.ca  Fri Dec 25 01:17:56 2009
From: ehlers at ucalgary.ca (Peter Ehlers)
Date: Thu, 24 Dec 2009 17:17:56 -0700
Subject: [Rd] bug in princomp example (PR#14167)
In-Reply-To: <20091224005012.6F5E5282EF4E@mail.pubhealth.ku.dk>
References: <20091224005012.6F5E5282EF4E@mail.pubhealth.ku.dk>
Message-ID: <4B3404B4.2050708@ucalgary.ca>


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



[Rd] bug in princomp example (PR#14167)
Peter Ehlers