Description Usage Arguments Value
View source: R/aggregate_var.R
Intersect var_grid with the shape file and aggregate the variable's data for the shape file units
1 | aggregate_variable(var_grid, var_data, shape_file, shape_index, time)
|
var_grid |
simple feature polygon. The polygon grid for the individual pixels of the variable |
var_data |
Tibble where each row represents a pixel in the var_grid and a column holds the data for one time step in each pixel. |
shape_file |
Shape file with the basin sub-unit polygons. |
shape_index |
Character. Name of the column in the basin shapefile attribute table that provides the indices of the basin subunits. |
time |
Date Vector for the time steps in var_data |
Returns a tibble that provides the time series of the aggregated variable for the respective basin subunits
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.