Usage Arguments Details Value Examples
1 | get_kd_best(id, years, datasource = NA)
|
id |
The character ID for the requested data |
years |
Integer vector of years for which you want Kd values |
datasource |
NA (for no filter) or vector of string sources to filter. Get options in dataset
using |
This implements a hierarchical selection routine. The hierarchy is:
Mean in-situ secchi data for each year available
Mean satellite secchi data for each year availble
Overall mean in-situ secchi value for the lake
Overall mean satellite secchi value for the lake
Population mean of in-situ data (currently 2.46566 meters)
This guarantees you will always get a secchi value for a lake. This does not mean that lake has observed secchi data, as 'population mean' is the catch-all.
A data frame with columns 'year', 'secchi_avg', and 'source'.
1 2 | #get the best available secchi depths for Sparkling lake
get_kd_best('WBIC_1881900', 1979:2012)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.