View source: R/ff_read_ianigla.R
read_ianigla | R Documentation |
Reads csv files downloaded from the Sistema de Monitoreo Meteorológico de Alta Montaña web page as a data frame.
read_ianigla(path, by = "1 hour", out_name = NULL)
path |
path to the csv 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 csv file. Gaps between dates are filled with
NA_real_
and duplicated rows are eliminated automatically.
# set path to file
path_file <- system.file('extdata', 'ianigla_cuevas.csv',
package = 'hydrotoolbox')
# read with default names
head( read_ianigla(path = path_file) )
# set column names
head(
read_ianigla(path = path_file,
out_name = c('tair(°C)', 'rh(%)', 'patm(mbar)',
'p(mm)', 'wspd(km/hr)', 'wdir(°)',
'kin(kW/m2)', 'hsnow(cm)', 'tsoil(°C)' ) )
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.