Compute principle components of stars object
# S3 method for stars_proxy
prcomp(x, ..., downsample = 0)# S3 method for stars
prcomp(x, ..., quiet = FALSE)
object of class `prcomp`, see prcomp
object of class `stars` or `stars_proxy`
see prcomp
see st_as_stars
logical; if `TRUE`, suppress message that PCs will be computed on last dimension; see details
if `x` has only one attribute, principle components will be computed in the space of the last dimension of `x` to predict PC scores into a `stars` object, use predict.stars; see example below