read_ianigla {hydrotoolbox} | R Documentation |
Reads data from Sistema de Monitoreo Meteorológico de Alta Montaña (IANIGLA - Argentina)
Description
Reads csv files downloaded from the Sistema de Monitoreo Meteorológico de Alta Montaña web page as a data frame.
Usage
read_ianigla(path, by = "1 hour", out_name = NULL)
Arguments
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). |
Value
A data frame with the data inside the csv file. Gaps between dates are filled with
NA_real_
and duplicated rows are eliminated automatically.
Examples
# 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)' ) )
)
[Package hydrotoolbox version 1.1.2 Index]