This function allows to calculate slope statistics for polygons. For each polygon, the desired statistic(s) are returned.
calc_slope(engine ="exactextract", stats ="mean")
Arguments
engine: The preferred processing function from either one of "zonal", "extract" or "exactextract" as a character string.
stats: Function to be applied to compute statistics for polygons. Accepts either a single string or a vector of strings, such as "mean", "median", "sd", "min", "max", "sum", or "var".
Returns
A function that returns an indicator tibble with specified slope statistics as variables and corresponding values (in degrees).