Skip to content

Commit

Permalink
pca
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Jul 15, 2024
1 parent 402857a commit 14033b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions man/prcomp.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -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}}}

Expand Down

0 comments on commit 14033b6

Please sign in to comment.