load_precip_from_xls: Load precipitation dataset from Excel File

Description Usage Arguments Value Examples

Description

Loads the hourly precipitation data from an Excel spreadsheet (specifically: LoganPrecip.xlsx).

Usage

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"))

Arguments

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'

Value

dataframe or zoo object of hourly precipitation values

Examples

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')

walkerjeffd/myrwaR documentation built on May 3, 2019, 10:46 p.m.