[R-sig-Geo] pca on raster layers with NA's

César Capinha nrevistada at yahoo.co.uk
Wed Jul 24 10:44:33 CEST 2013


Dear Robert, 
It works really fine.

Thanks a lot.
Edward.


Shared e-mail account. 




----- Original Message -----
From: Robert J. Hijmans <r.hijmans at gmail.com>
To: César Capinha <nrevistada at yahoo.co.uk>
Cc: "r-sig-geo at r-project.org" <r-sig-geo at r-project.org>
Sent: Tuesday, 23 July 2013, 21:43
Subject: Re: [R-sig-Geo] pca on raster layers with NA's

César, I think you can do princomp(na.omit(values(s)), cor=TRUE)
For large objects, also see the pca example in ?raster::predict
Robert



More information about the R-sig-Geo mailing list