View source: R/tag_residuals_direct.R
tag_residuals_direct | R Documentation |
tag_residuals_direct
uses a linear model to estimate the relationship between surface light and light below the surface for the specified depth bins.
tag_residuals_direct( x, formula = log10(trans_llight) ~ log10(surf_trans_llight) + interaction(vessel, cruise), water.col = "trans_llight", surface.col = "surf_trans_llight", depth.col = "cdepth", depth.bins = c(1, 3, 5, 7, 9), ... )
x |
Data frame containing surface light, light at depth, depth, and unique identifiers for survey vessels, years, etc. |
formula |
an object of class formula, passed to |
water.col |
A character vector with the name of the column containing water column light measurements. |
surface.col |
A character vector with the name of the column containing surface light measurements. |
depth.col |
A character vector with the name of the column containing depths. |
depth.bins |
Depth bins for which linear regression should be conducted. |
... |
Additional arguments |
Sean Rohan sean.rohan@noaa.gov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.