Learn R Programming

hydroToolkit (version 0.1.0)

read_IANIGLA: Reads data provided by IANIGLA

Description

Reads the data provided by IANIGLA (Instituto Argentino de Nivologia, Glaciologia y Ciencias Ambientales).

Usage

read_IANIGLA(file, all = FALSE, path = NULL)

Arguments

file

string with the name of the '.csv' file downloaded from the meteo-stations web page.

all

logical value indicating whether the returned data frame contain all the original columns or just the date and data.

path

string with the files directory. If not provided, the function will use the current working directory.

Value

A data frame containing the hourly data measured by the automatic weather stations. Gaps between dates are filled with NA_real_ and duplicated rows are eliminated automatically.

Examples

Run this code
# NOT RUN {
# Relative path to raw data
full_path <- system.file('extdata', package = "hydroToolkit")

# Apply function
cuevas <- read_IANIGLA(file = 'Cuevas.csv', path = full_path)             

# }

Run the code above in your browser using DataLab