download_grapes: Grape Harvest Dates

Description Usage Details Examples

Description

This function creates the grapes dataset by downloading the data from a website by the NOAA National Climatic Data Center and returning it as a uts_vector object. It is not meant to be called directly, but provided for reproducability.

Usage

1

Details

The raw data is available in Excel and raw text, but the latter has several formatting errors. Therefore, the data is imported from the Excel file using the XLConnect package.

Examples

1
2
3
4
5
6
7
8
if (requireNamespace("XLConnect", quietly=TRUE)) {
  grapes <- download_grapes()
  
  ## Not run: 
    save(grapes, file=file.path("data", "grapes.rda"), compress="xz")
  
## End(Not run)
}

andreas50/utsData documentation built on May 13, 2019, 12:52 p.m.