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

rpdo

Lifecycle: superseded R-CMD-check Codecov License: CC0 CRAN_Status_Badge CRAN Downloads

rpdo has been superseded by the rsoi package which includes the historical and most recent monthly PDO index values together with related climate indices.

rpdo is an R data package of monthly Pacific Decadal Oscillation (PDO) index values from r month.name[rpdo::pdo$Month[1]] r rpdo::pdo$Year[1] to r month.name[rpdo::pdo$Month[nrow(rpdo::pdo)]] r rpdo::pdo$Year[nrow(rpdo::pdo)].

The function pdo_download() scrapes the data from the no longer updated http://research.jisao.washington.edu/pdo/PDO.latest.

Demonstration

library(rpdo)
library(ggplot2)

data <- rpdo::pdo

data <- subset(data, data$Month == 1)

ggplot(data = data, aes(x = Year, y = PDO)) +
  geom_smooth(span = 0.1, se = FALSE, color = "black", method = "loess") +
  geom_point() +
  ylab("January PDO Index")

Installation

To install the latest release from CRAN

install.packages("rpdo")

To install the developmental version from GitHub

# install.packages("remotes")
remotes::install_github("poissonconsulting/rpdo")

Information

For more information see http://research.jisao.washington.edu/pdo/PDO.latest.

Contribution

Please report any issues.

Pull requests are always welcome.

Code of Conduct

Please note that the rpdo project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.



poissonconsulting/rpdo documentation built on Aug. 22, 2023, 10:03 p.m.