rnoaa (version 0.8.4)

lcd: Local Climitalogical Data from NOAA

Description

Local Climitalogical Data from NOAA

Usage

lcd(station, year, ...)

Arguments

station

(character) station code, e.g., "02413099999". we will allow integer/numeric passed here, but station ids can have leading zeros, so it's a good idea to keep stations as character class

year

(integer) year, e.g., 2017

...

curl options passed on to HttpClient

Value

a data.frame, with many columns, and variable rows depending on how frequently data was collected in the given year

a data.frame with many columns. the first 10 are metadata:

  • station

  • date

  • source

  • latitude

  • longitude

  • elevation

  • name

  • report_type

  • call_sign

  • quality_control

And the rest should be all data columns. See Note about data joined together.

References

https://www.ncdc.noaa.gov/cdo-web/datatools/lcd https://www1.ncdc.noaa.gov/pub/data/cdo/documentation/LCD_documentation.pdf

Examples

Run this code
# NOT RUN {
lcd(station = "01338099999", year = "2017")
lcd(station = "01338099999", year = "2015")

lcd(station = "02413099999", year = "2009")
lcd(station = "02413099999", year = "2001")

# pass curl options
lcd(station = "02413099999", year = "2002", verbose = TRUE)
# }

Run the code above in your browser using DataLab