Learn R Programming

SWMPr (version 2.1.4)

import_remote: Import SWMP data from Amazon web services

Description

Import SWMP data that are stored on Amazon web services as .RData files. Data include almost all available data from 1994 to 2014 for every SWMP station.

Usage

import_remote(station_code)

Arguments

station_code
chr string of station to import, i.e., 7 or 8 characters indicating the reserve, site, and data type. Do not include years.

Value

  • Returns a swmpr object.

concept

retrieve

Details

This function allows quick retrieval of .RData files for all data at a single SWMP site. It differs from the other data retrieval functions in that the raw data are downloaded from an independent remote server. Retrieval time is much faster because the files are in binary format for quick import. However, the data are only available up to December 2014 and may not be regularly updated. Always use the CDMO for current data. The data have also been pre-processed using the qaqc and setstep functions. The files are available here: https://s3.amazonaws.com/swmpalldata/. Files can be obtained using the function or by copying the URL to a web browser with the station name appended to the address, including the .RData file extension. For example, https://s3.amazonaws.com/swmpalldata/acebbnut.RData.

See Also

import_local

Examples

Run this code
## import a file
dat <- import_remote('rkbmbwq')

head(dat)

attributes(dat)

Run the code above in your browser using DataLab