
Estimate average thermocline depth across multiple sites and dates.
estThermo(data, site, date, depth, temp, combine = "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
data frame of water column temperature profiles
character giving the name of the site column
character giving the name of the date column
character giving the name of the depth column
character giving the name of the temp column
logical indicating whether or not to average across sites ("sites"), dates ("dates"), or sites and dates ("all"), default = "all"
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")
Run the code above in your browser using DataLab