Re: [R] predict.prcomp: 'newdata' does not have the correct number of columns

From: Gad Abraham <>
Date: Sun, 18 May 2008 19:21:56 +1000

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

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 18 May 2008 - 09:28:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 18 May 2008 - 09:30:39 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive