diff --git a/man/prcomp.Rd b/man/prcomp.Rd index 521c186fa..b060d0c50 100644 --- a/man/prcomp.Rd +++ b/man/prcomp.Rd @@ -28,6 +28,9 @@ Compute principal components for SpatRaster layers. This method may be preferred prcomp object } +\note{ +\code{prcomp} may change the layer names if they are not valid. See \code{\link{make.names}}. In that case, you will get a warning, and would need to also make the layernames of \code{x} valid before using \code{predict}. Even better would be to change them before calling \code{prcomp}. +} \seealso{ \code{\link{princomp}}, \code{\link[stats]{prcomp}}}