Description Usage Arguments Value Examples
Loads the hourly precipitation data from an Excel spreadsheet (specifically: LoganPrecip.xlsx).
1 2 3 | load_precip_from_xls(path, sheet.name = "Processed precipitation",
tz = "EST", datetime.name = "Datetime", value.name = "Precip",
as.type = c("dataframe", "zoo"))
|
path |
Full path and filename to precipitation spreadsheet (LoganPrecip.xlsx) |
sheet.name |
Name of workbook sheet to load data from (default="Processed precipitation") |
tz |
Timezone of date/time stamps (default="EST") |
datetime.name |
Name of datetime column (default="Datetime") |
value.name |
Name of precipitation column (default="Precip") |
as.type |
Return type as 'dataframe' (default) or 'zoo' |
dataframe or zoo object of hourly precipitation values
1 2 3 | filepath <- system.file("extdata", "LoganPrecip.xlsx", package = "myrwaR")
pcp.df <- load_precip_from_xls(filepath, as.type='dataframe')
pcp.zoo <- load_precip_from_xls(filepath, as.type='zoo')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.