Combines the runoff_ts
columns from two HS objects, or adds new
runoff timeseries from a raster. **All** geometries in HS must be present
in the object to be added, or combination will not done.
add_HS( HS, from = NULL, rasters = NULL, unit = NULL, date = NULL, timestep = NULL, aoi = NULL, names = NULL )
HS | an existing |
---|---|
from | A |
rasters | A raster object, or a list of raster objects, or a list of
URIs to files readable by |
unit | Unit of the timeseries, coercable with |
date | Date of the first layer in |
timestep | Length of timestep in raster. Currently supporting
|
aoi | Area of interest as an 'sf' polygon object, 'SpatialPolygons', or 'SpatialPolygonsDataFrame'. Optional, but recommended for all applications. |
names | A name (names) for the runoff timeserie(s). |
Returns the input HS
object with added columns in
runoff_ts column.