[Rd] bug in prcomp (PR#8994)

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sat Jun 17 08:39:37 CEST 2006


KjetilBrinchmannHalvorsen at gmail.com writes:

> The following seems to be an bug in prcomp():
...
>  > prcomp(test, scale.=TRUE, na.action=na.omit)
> Erro en svd(x, nu = 0) : infinite or missing values in 'x'
>  > prcomp(na.omit(test), scale.=TRUE, na.action=na.omit)

Nope. We've been here before: The _formula_method_ for prcomp takes an
na.action argument, the default method does not. If you read closely,
you'll see that this is in accordance with documentation. 


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-devel mailing list