rsoi (version 0.5.1)

download_soi: Download Southern Oscillation Index data

Description

The Southern Oscillation Index is defined as the standardized difference between barometric readings at Darwin, Australia and Tahiti.

Usage

download_soi(use_cache = FALSE, file = NULL)

Arguments

use_cache

logical option to save and load from cache. If `TRUE`, results will be cached in memory if `file` is `NULL` or on disk if `file` is not `NULL`.

file

optional character with the full path of a file to save the data. If `cache` is `FALSE` but `file` is not `NULL`, the results will be downloaded from the internet and saved on disk.

Value

  • Date: Date object that uses the first of the month as a placeholder. Date formatted as date on the first of the month because R only supports one partial of date time

  • Month: Month of record

  • Year: Year of record

  • SOI: Southern Oscillation Index

  • SOI_3MON_AVG: 3 Month Average Southern Oscillation Index

References

https://www.ncdc.noaa.gov/teleconnections/enso/indicators/soi/

Examples

Run this code
# NOT RUN {
soi <- download_soi()
plot(x = enso$Date, y = enso$SOI, type = "l")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab