estThermo: Estimate Average Thermocline Depth

View source: R/estThermo.R

estThermoR Documentation

Estimate Average Thermocline Depth

Description

Estimate average thermocline depth across multiple sites and dates.

Usage

estThermo(data, site, date, depth, temp, combine = "all")

Arguments

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"

Value

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

Author(s)

Tristan Blechinger, Department of Zoology & Physiology, University of Wyoming

Examples

# 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")

rLakeHabitat documentation built on April 16, 2025, 1:10 a.m.