View source: R/temp_assessment.R
temp_assessment | R Documentation |
Creates three new variables for each sample summarizing the data within the last 3 years at that station; the number of excursions, the number of samples during the critical period, and the number of samples during the spawning period.
temp_assessment(df, datetime_column = "sample_datetime",
spawn_start_column = "spawn_start", spawn_end_column = "spawn_end",
result_column = "Result_cen", criteria_column = "temp_crit")
df |
dataframe with temperature data |
datetime_column |
POSIXCT column name containing sample datetimes |
spawn_start |
mm/dd spawn start date (as characters) |
spawn_end |
mm/dd spawn end date (as characters) |
results |
numeric results column name |
criteria |
name of column containing temperature criteria values |
a dataframe with relevant temperature spawning, criteria, and excursion variables added
temp_assessment(df = temperature-data, datetime_column = "sample_datetime",
spawn_start = "spawn_start", spawn_end = "spawn_end",
results = "Results_cen", criteria = "temp_crit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.