knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
Sys.setenv(TZ = 'UTC') library(plhdbR) load_plhdb_packages()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.