read_snih | R Documentation |
Reads excel files downloaded from the SNIH web page as a data frame.
read_snih(path, by, out_name = NULL)
path |
path to the xlsx file. |
by |
string with the time step of the series (e.g.: |
out_name |
optional. String vector with user defined variable(s) column(s) name(s). |
A data frame with the data inside the xlsx file. Gaps between dates are
filled with NA_real_
and duplicated rows are eliminated automatically.
# set path to file
path_file <- system.file('extdata', 'snih_qd_guido.xlsx', package = 'hydrotoolbox')
# read daily streamflow with default column name
head( read_snih(path = path_file, by = 'day') )
# now we use the function with column name
head( read_snih(path = path_file, by = 'day', out_name = 'qd(m3/s)') )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.