get_kd_year: Get light attenuation coefficient for a lake through time

Description Usage Arguments Details Value Author(s) Examples

Description

Returns the annual average light attenuation coefficient for a lake with the given ID

Usage

1
get_kd_year(id, years, src = "in-situ", datasource = NA)

Arguments

id

The character ID for the requested data

years

Integer vector of years for which you want Kd values

src

The data source, currently one of c('in-situ', 'satellite'). In-situ observations are default

datasource

NA (for no filter) or vector of string sources to filter. Get options in dataset using unique(secchi$datasource).

Details

TODO

Value

data.frmae of Kd values with the same number of rows as length(years). NA filled when missing.

Author(s)

Luke Winslow, Jordan Read

Examples

1
2
3
4
#Get and plot Kds for a lake over time
years = 1970:2012
kds   = get_kd_year('WBIC_1881900', years)
plot(secchi_m~year, kds, type='o')

USGS-R/lakeattributes documentation built on May 9, 2019, 8:13 p.m.