Extract_timeseries: Convenience functions to extract timeseries from a HS* object

Extract_timeseriesR Documentation

Convenience functions to extract timeseries from a HS* object

Description

These functions can be used to quickly extract segment specific timeseries (either discharge, runoff, observations or control) by riverID, or create a table from specified riverIDs with date and timeseries of the river segments in columns.

Usage

discharge(HS, riverID = NULL)

runoff(HS, riverID = NULL)

observations(HS, riverID = NULL)

control(HS, riverID = NULL)

Arguments

HS

a HS object

riverID

A vector of riverIDs for which to extract timeseries. If NULL (default), extracts timeseries from all river segments.

Value

Returns a list of tibbles with column Date and columns named by riverID. Each element of the list is named by and correspond to a different timeseries.


mkkallio/hydrostreamer documentation built on Oct. 14, 2023, 9:38 p.m.