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.

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).