Skip to content

Commit

Permalink
for #1662
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Dec 18, 2024
1 parent 2a24157 commit 3ef6016
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions man/aggregate.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@ You can also aggregate ("dissolve") a SpatVector. This either combines all geome
\details{
Aggregation starts at the upper-left end of a SpatRaster. If a division of the number of columns or rows with \code{factor} does not return an integer, the extent of the resulting SpatRaster will be somewhat larger then that of the original SpatRaster. For example, if an input SpatRaster has 100 columns, and \code{fact=12}, the output SpatRaster will have 9 columns and the maximum x coordinate of the output SpatRaster is also adjusted.

The function \code{fun} should take multiple numbers, and return a single number. For example \code{mean}, \code{modal}, \code{min} or \code{max}.

It should also accept a \code{na.rm} argument (or ignore it as one of the 'dots' arguments).
The function \code{fun} should take multiple numbers, and return one or more numeric values. If multiple numbers are returned, the length of the returned vector should always be the same, also, for example, when the input is only NA values. For that reason, \code{range} works, but \code{unique} will fail in most cases.
}

\seealso{\code{\link{disagg}} to disaggregate}
\seealso{\code{\link{disagg}} to disaggregate, and \code{\link{resample}} for more complex changes in resolution and alignment}

\value{
SpatRaster
Expand Down

0 comments on commit 3ef6016

Please sign in to comment.