[R] predict.prcomp: 'newdata' does not have the correct number of columns
Gad Abraham
gabraham at csse.unimelb.edu.au
Sun May 18 11:21:56 CEST 2008
Prof Brian Ripley wrote:
> This is not to do with 'wide' matrices' but to do with the lack of
> column names.
>
> There is a bug -- the definition of 'p' should have NROW and not NCOL.
>
> On Sun, 18 May 2008, Gad Abraham wrote:
>
I've submitted a bug report:
predict.prcomp: wrong check for matrix dimensions (PR#11482)
--
Gad Abraham
Dept. CSSE and NICTA
The University of Melbourne
Parkville 3010, Victoria, Australia
email: gabraham at csse.unimelb.edu.au
web: http://www.csse.unimelb.edu.au/~gabraham
More information about the R-help
mailing list