Description Usage Arguments Value Examples
Add three columns for trophic status, where it is possible. Trophic status can be calculated from secchi depth, chlorophyll-a, or total phosphorus
1 | add_trophic_status(cyan_data)
|
cyan_data |
a data frame from |
cyan_data with three additional columns. TROPHIC_STATUS_INDEX giving the numerical trophic status index, TROPHIC_STATUS - indicating which trophic category that index falls into, and the method used to calculate the trophic stats. TROPHIC_STATUS_METHOD
1 2 3 4 5 6 7 8 9 10 11 12 13 | #Connect to the example database bundled with CyAN
path <- system.file("extdata", "example.db", package = "CyAN")
db_connection <- connect_cyan(path)
#Get all of the chlorophyll and chlorophyll-a data (parameter id P0051 & P0054)
#or the state of Kansas in the year 2016
ks_chl_2016 <- get_cyan_data(db_connection, collect = TRUE,
years = 2016,
parameters = c("P0051", "P0054"),
states = "KS")
#Add trophic status columns
ks_chl_2016_wtrophic <- add_trophic_status(ks_chl_2016)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.