knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/", 
  warning = FALSE
)

License: GPL v3 R-CMD-check

CRAN_Status_Badge CRAN Downloads cran checks

rsoi

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

Installation

For the development version

install.packages("rsoi")

library(rsoi)
library(tibble)
library(rsoi)
library(tibble)

Usage

Download Oceanic Nino Index data

oni <- download_oni()
head(oni)

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.



boshek/rsoi documentation built on Nov. 3, 2023, 3:30 a.m.