bomDailyObs: A BOM daily observation extractor.

Description Usage Arguments Details Value Examples

Description

A function to extract daily data from the BOM website.

Usage

1
bomDailyObs(siteNumber, observation = "max_temp",...)

Arguments

siteNumber

Either numeric without leading 0, or character with leading 0 of the site number.

observation

The type of observation desired. Options are; max_temp,min_temp, solar, rain.

...

Additional commands for the RCurl package.

Details

The possible values are maximum daily temp, solar exposure and rainfall. This function makes a request to the BOM website for the requested data. If the site and the type of data is available then a second request is made for a zip file of the data. The zip file is downloaded and unziped and loaded into R.

Value

A data.frame containing the returned values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
siteNumber <- 066062
siteNumber
data <-bomDailyObs(siteNumber,observation="rain")
head(data)
siteNumber <- "066062"
data <-bomDailyObs(siteNumber,observation="solar")
head(data)


## End(Not run)

johnDorian/BOMdataRipper documentation built on May 19, 2019, 3:02 p.m.