download_amo: Download AMO data

View source: R/download_environment_data.R

download_amoR Documentation

Download AMO data

Description

It downloads data from https://psl.noaa.gov/data/timeseries/AMO/, reshape the data to one column, and save the data to a specified location. It returns a dataframe with 2 columns. One column contains raw values and the other column contains scaled values with specified output range.

Usage

download_amo(url, years, output_dir, scale_range = c(0, 2))

Arguments

url

url for downloading data.

years

a vector of years.

output_dir

path to output csv file.

scale_range

output range (numeric vector of length two).


Bai-Li-NOAA/IFA4EBFM documentation built on April 26, 2024, 5:35 p.m.