File: exact_resample.Rd

package info (click to toggle)
r-cran-exactextractr 0.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,152 kB
  • sloc: cpp: 7,238; sh: 14; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 1,035 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exact_resample.R
\name{exact_resample}
\alias{exact_resample}
\alias{exact_resample,RasterLayer,RasterLayer-method}
\alias{exact_resample,SpatRaster,SpatRaster-method}
\title{Resample a raster to a new grid}
\usage{
\S4method{exact_resample}{RasterLayer,RasterLayer}(x, y, fun, coverage_area = FALSE)

\S4method{exact_resample}{SpatRaster,SpatRaster}(x, y, fun, coverage_area = FALSE)
}
\arguments{
\item{x}{a \code{RasterLayer} or \code{SpatRaster} to be resampled}

\item{y}{a raster of the same class as \code{x} with a grid definition to
which \code{x} should be resampled}

\item{fun}{a named summary operation or R function to be used for the resampling}

\item{coverage_area}{use cell coverage areas instead of coverage fractions
in \code{fun}}
}
\value{
a resampled version of \code{x}, returned as a \code{RasterLayer} or
        \code{SpatRaster}, depending on the values of \code{x} and \code{y}
}
\description{
Resample a raster to a new grid
}