Derive raster statistics: "median","mean", "min", "max", "sd", "skew"

raster_stats(i, .ls, .lines, .stat)

Arguments

i

numeric, indice

.ls

a RasterStack of terrain analysis rasters, passed from get_stats_df()

.lines

a SpatialLinesDataFrame, passed from get_stats_df()

.stat

character, list of statistics to derive, passed from get_stats_df()

Value

a numeric vector of statistics