A BOM monthly observation getter.

Share:

Description

A function to retrieve daily data from the BOM website.

Usage

1
bomMonthlyObs(siteNumber, observation = "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; observation must be; mean_max_temp, mean_min_temp, highest_temp, lowest_temp, highest_min_temp, rain or solar.

...

Additional commands for the RCurl package.

Details

The possible values are maximum monthly temp, solar exposure and rainfall. This function makes a request to the server and then reads the displayed values in two table

Value

monthly

A data.frame containing the returned monthly values.

summaryStats

A table of summary statistics for the site.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
siteNumber <- 066062
siteNumber
data <-bomMonthlyObs(siteNumber,observation="rain")
names(data)
names(data$monthly)
plot(data$monthly$observation,type="h")
data$summaryStats

## End(Not run)