ace_station: Create Object Representing a Water Monitoring Station

Description Usage Arguments Value Examples

View source: R/ace_station.R

Description

ace_station constructs ace_station objects, which store information about water monitoring stations

Usage

1
2
3
ace_station(name, code, project, data_columns, data_units = c(),
  depths = c(), data_skiprows, data_url = NULL, latitude = NULL,
  longitude = NULL, info_url = NULL)

Arguments

name

The name of the station (e.g. "Fremont Bridge")

code

Water monitoring station code (e.g. "FBLW")

project

Code for project (e.g. "LKW" for Lake Washington Ship Canal)

data_columns

Vector of names of columns in the data

data_units

Vector of units corresponding to each entry in data_columns

depths

Vector of depths, in feet, for the station's measurements

data_skiprows

Number of rows to skip at the beginning of data file

data_url

Station data url. By default, one will be created using the standard url scheme and the monitoring station code.

latitude

Station's latitude

longitude

Station's longitude

info_url

Web URL providing information about the station

Value

An ace_station object

Examples

1
2
3
4
5
6
7
8
my_station <- ace_station(
    name = "Fremont Bridge",
    code = "FBLW",
    project = "LKW",
    data_columns = c("Time", "SaltA", "SaltB", "SaltC", "TempA", "TempB", "TempC"),
    depths = c("A" = 18, "B" = 31, "C" = 40),
    data_skiprows = 5
)

briandconnelly/acewater documentation built on April 28, 2021, 2:13 a.m.