download.nao: Download and Cache the North Atlantic Oscillation data

View source: R/nao.R

download.naoR Documentation

Download and Cache the North Atlantic Oscillation data

Description

Data are downloaded from the National Centers for Environmental Information National Oceanic and Atmospheric Administration website.

Usage

download.nao(destdir = ".", destfile = NULL)

Arguments

destdir

Optional string indicating the directory in which to store downloaded files. If not supplied, "." is used, i.e. the data file is stored in the present working directory.

destfile

Optional string indicating the name of the file. If not supplied, the file name as provided on the website.

Details

The data are downloaded from 'https://www.ncdc.noaa.gov/teleconnections/nao/data.csv' using utils::download.file() pointed to the National Centers for Environmental Information National Oceanic and Atmospheric Administration website. Caution: the location that these data are held could potentially vary, so it could work one day, and fail the next.


clayton33/csasMarPhys documentation built on June 8, 2025, 3:10 a.m.