Create a basic data frame for plotting
build_table(hm_obj, slot_name, col_name, from = NULL, to = NULL)
A data frame with the date in the first column and the variables to plot on the others.
a valid hydromet_xxx
class object.
string vector with the slot(s) to extract from the hm_obj
.
a list containing a vector string per slot with the name(s) of the column(s) to plot.
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.
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'.