estThermo | R Documentation |
Estimate average thermocline depth across multiple sites and dates.
estThermo(data, site, date, depth, temp, combine = "all")
data |
data frame of water column temperature profiles |
site |
character giving the name of the site column |
date |
character giving the name of the date column |
depth |
character giving the name of the depth column |
temp |
character giving the name of the temp column |
combine |
logical indicating whether or not to average across sites ("sites"), dates ("dates"), or sites and dates ("all"), default = "all" |
either numeric value of average thermocline depth, standard deviation, and n or data frame of thermocline depths, standard deviations, and n across sites or dates
Tristan Blechinger, Department of Zoology & Physiology, University of Wyoming
# load test profile data
data <- read.csv(system.file("extdata", "example_profile_data.csv", package = 'rLakeHabitat'))
data$date <- base::as.Date(data$date)
#run function
estThermo(data = data, site = "site", date = "date",
depth = "depth", temp = "temp", combine = "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.