View source: R/filter_stepwise.R
| filter_stepwise | R Documentation | 
filter_stepwise aggregates light measurements from a single cast into depth bins using a specificed function (e.g. 'median'), removes light measurements using a stepwise algorithm, and assigns data continuity grades based on a threshold criteria.
filter_stepwise(
  cast.data,
  light.col,
  depth.col,
  id.cols = c("vessel", "cruise", "haul", "updown"),
  bin.size = 2,
  bin.gap = 6,
  agg.fun,
  filter = T,
  ...
)
cast.data | 
 Data frame containing light measurements and depth.  | 
bin.size | 
 The size of the depth bin used for aggregation. Default = 2.  | 
bin.gap | 
 The maximum size of data gap before a profile is considered to not meet continuity standards. Units are in units of depth, not the number of bins. Default = 6.  | 
agg.fun | 
 Function used to aggregate light measurements for each depth bin.  | 
... | 
 Additional arguments passed to findInterval function for binning light measurements  | 
Data frame with light by depth bin and continuity grade (1 = Good, -999 = Bad)
Sean Rohan sean.rohan@noaa.gov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.