Description Usage Arguments Value Examples
Reads data downloaded from Explorador Climatico de Chile (CR2) as a data frame.
1 |
file |
string with the file name (include extension). The only accepted format is '.csv'. |
colName |
string with the name of the variable. |
path |
string with the files directory. If not provided, the function will use the current working directory. |
A two column data frame with date and variable. Gaps between dates are filled with NA_real_
and duplicated rows are eliminated automatically.
1 2 3 4 5 6 | # Relative path to raw data
full_path <- system.file('extdata', package = "hydroToolkit")
# Apply function
yeso_tmed <- read_CR2(file = 'Tmed_Yeso_Embalse.csv',
colName = 'T(ºC)', path = full_path)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.