View source: R/download_environment_data.R
download_amo | R Documentation |
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))
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). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.