Learn R Programming

rsoi

An R package to download the most up to date of these climate indices:

  • Southern Oscillation Index
  • Oceanic Nino Index
  • North Pacific Gyre Oscillation
  • North Atlantic Oscillation
  • Arctic Oscillation
  • Antarctic Oscillation
  • Multivariate ENSO Index Version 2
  • Pacific Decadal Oscillation
  • Dipole Mode Index

Installation

For the development version

install.packages("rsoi")

library(rsoi)
library(tibble)

Usage

Download Oceanic Nino Index data

oni <- download_oni()
head(oni)
#> # A tibble: 6 × 7
#>    Year Month Date       dSST3.4   ONI ONI_month_window phase             
#>   <int> <ord> <date>       <dbl> <dbl> <chr>            <fct>             
#> 1  1950 Jan   1950-01-01   -1.62 NA    <NA>             <NA>              
#> 2  1950 Feb   1950-02-01   -1.32 -1.34 JFM              Cool Phase/La Nina
#> 3  1950 Mar   1950-03-01   -1.07 -1.17 FMA              Cool Phase/La Nina
#> 4  1950 Apr   1950-04-01   -1.11 -1.18 MAM              Cool Phase/La Nina
#> 5  1950 May   1950-05-01   -1.37 -1.07 AMJ              Cool Phase/La Nina
#> 6  1950 Jun   1950-06-01   -0.74 -0.85 MJJ              Cool Phase/La Nina

And a quick plot to illustrate the data:

barcols <- c('#edf8b1','#7fcdbb','#2c7fb8')

barplot(oni$ONI, names.arg = oni$Date, ylab = "Oceanic Nino Index" , 
    col = barcols[oni$phase], border = NA, space = 0,
    xaxt = "n")

Inspired by

The idea for this package borrows heavily from the rpdo package. rsoi now supercedes rpdo as a source of data in R for Pacific Decadal Oscillation.

Copy Link

Version

Install

install.packages('rsoi')

Monthly Downloads

259

Version

0.5.6

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Sam Albers

Last Published

November 16th, 2023

Functions in rsoi (0.5.6)

download_dmi

Download Dipole Mode Index (DMI)
download_ao

Download Arctic Oscillation data
download_npgo

Download North Pacific Gyre Oscillation data
download_nao

Download North Atlantic Oscillation data
download_aao

Download Antarctic Oscillation data
download_pdo

Download Pacific Decadal Oscillation Data
download_mei

Download Multivariate ENSO Index Version 2 (MEI.v2)
download_enso

Download Southern Oscillation Index and Oceanic Nino Index data
download_asymsam_monthly

Download Asymmetric and Symmetric SAM indices
download_oni

Download Oceanic Nino Index data
download_soi

Download Southern Oscillation Index data
rsoi-package

El Nino/Southern Oscillation (ENSO) and Related Climate Indices