read_aic {hydrotoolbox} | R Documentation |
Reads data from AIC
Description
Reads excel files provided by the AIC.
Usage
read_aic(
path,
by = "day",
out_name = NULL,
sheet = NULL,
skip = 12,
get_sheet = FALSE
)
Arguments
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). |
sheet |
optional. Sheet to read. Either a string (the name of a sheet), or an integer (the position of the sheet). If neither argument specifies the sheet, defaults to the first sheet. |
skip |
optional. Minimum number of rows to skip before reading anything, be it column names or data. Leading empty rows are automatically skipped, so this is a lower bound. |
get_sheet |
logical indicating whether you want to print available sheet names
( |
Value
A data frame with the data inside the xlsx file. Gaps between dates are filled with NA_real_
and duplicated rows are eliminated automatically.
Examples
# This files are provided by AIC under legal agreement only.