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

Back to Respository

Functions for working with the PLHDB data tables

Prepare workspace

  Sys.setenv(TZ = 'UTC')

  library(plhdbR)
  load_plhdb_packages()

Utility functions for climate data

plhdbR includes functions for pulling the most recent data for several large-scale climate oscillation indices from various online data repositories. Supported climate indices include:

The function load_climate_index returns a named list of monthly climate index data. Each element of the list is an object of class dplyr::tbl_df.

  indices <- load_climate_index(c("nao", "mei"))

  indices

Squash all the list elements together to a single tbl_df with dplyr::bind_rows:

  indices_df <- dplyr::bind_rows(indices)
  summary(indices_df)


camposfa/plhdbR documentation built on May 13, 2019, 11:02 a.m.