From bbolker at gmail.com  Sat May 31 21:47:48 2014
From: bbolker at gmail.com (Ben Bolker)
Date: Sat, 31 May 2014 19:47:48 +0000
Subject: [Rd] A bug in princomp(), perhaps?
References: <2F9EA67EF9AE1C48A147CB41BE2E15C30E2D6CDC@DOM-EB-MAIL2.win.ad.jhu.edu>
	<5213E16E-54FC-46D2-A92E-BC2D44A338BD@gmail.com>
	<2F9EA67EF9AE1C48A147CB41BE2E15C30E2D7237@DOM-EB-MAIL2.win.ad.jhu.edu>
	<CAAHES9zWN3c4pdK8XcKLuKbq4kNV3Ohs6NCb0yo9dGM0+3sP4w@mail.gmail.com>
	<2F9EA67EF9AE1C48A147CB41BE2E15C30E2D734D@DOM-EB-MAIL2.win.ad.jhu.edu>
	<CAAHES9xiwaSv3FQ1HYY3NPfCsdqGN+fvqDzvp6vxtArERXA4Jw@mail.gmail.com>
Message-ID: <loom.20140531T202439-171@post.gmane.org>

> 

FWIW this seems to be a FAQ:


https://stat.ethz.ch/pipermail/r-devel/2003-July/027018.html

http://thr3ads.net/r-devel/2013/01/
   2171832-Re-na.omit-option-in-prcomp-formula-interface-only

http://r.789695.n4.nabble.com/
  na-omit-option-in-prcomp-formula-interface-only-td4373533.html

And two StackOverflow questions (the latter's a bit tangential):

http://stackoverflow.com/questions/12078291/
   r-function-prcomp-fails-with-nas-values-even-though-nas-are-allowed

http://stackoverflow.com/questions/23421438/what-was-wrong-with-running-princomp-in-r/23446938#23446938

  (Sorry for broken URLs and random assortment of mailing list
aggregators.)

  I appreciate Gavin's points that implementing this stuff for
princomp.default is difficult/problematic, but I second Ravi's
request for a little  more clarification in the help  text; it's
quite easy to miss the fact that 'na.action' is defined for
princomp.formula but not for princomp.default.  Perhaps just
"Note that setting na.action works for princomp.formula, but
not for princomp.default" (under the "na.action" argument description).

Gavin Simpson <ucfagls <at> gmail.com> writes:



> > On 30 May 2014 06:33, Ravi Varadhan <ravi.varadhan <at> jhu.edu> wrote:
> >
> > Thank you, Peter.  Now I see that.
> >
> > I still think the documentation of `na.action' 
> > can be made more explicit
> > to state that this option is only used for princomp.formula.
> >
> > Best regards,
> > Ravi
> >
> >
> > -----Original Message-----
> > From: peter dalgaard [mailto:pdalgd <at> gmail.com]
> > Sent: Friday, May 30, 2014 5:15 AM
> > To: Ravi Varadhan
> > Cc: r-devel <at> r-project.org
> > Subject: Re: [Rd] A bug in princomp(), perhaps?
> >
> > It's only documented to work for princomp.formula; 
> > other methods do not
> > know about na.action.
> >
> > -pd
> >



[Rd] A bug in princomp(), perhaps?
Ben Bolker