build_table: Create a basic data frame for plotting

View source: R/aux_build_table.R

build_tableR Documentation

Create a basic data frame for plotting

Description

Create a basic data frame for plotting

Usage

build_table(hm_obj, slot_name, col_name, from = NULL, to = NULL)

Arguments

hm_obj

a valid hydromet_xxx class object.

slot_name

string vector with the slot(s) to extract from the hm_obj.

col_name

a list containing a vector string per slot with the name(s) of the column(s) to plot.

from

string (or POSIXct) with the starting date. You can use 'from' without 'to'. In this case you will subset your data 'from' till the end.

to

string (or POSIXct) with the ending date. You can use 'to' without 'from'. In this case you will subset your data from the beginning till 'to'.

Value

A data frame with the date in the first column and the variables to plot on the others.


hydrotoolbox documentation built on April 14, 2023, 12:34 a.m.