qc_cu: Quality Control - Channel Unit Data

View source: R/qc_cu.R

qc_cuR Documentation

Quality Control - Channel Unit Data

Description

Quality control channel unit data (e.g., from CU_1.csv files) imported using read_otg_csv() or read_otg_csv_wrapper().

Usage

qc_cu(
  qc_df = NULL,
  cols_to_check_nas = c("Channel Segment Number", "Channel Unit Number",
    "Channel Unit Type", "Maximum Depth (m)", "TOS", "BOS"),
  valid_cus = c("Pool", "Run", "Riffle", "OCA", "Rapid+", "SSC"),
  ted_min = 0,
  ted_max = 2,
  md_min = 0,
  md_max = 3,
  cover_columns = c("Overhanging (%)", "Aquatic Vegetation (%)", "Woody Debris (%)",
    "Artificial (%)", "Total No Cover (%)"),
  cov_max = 130,
  ocular_columns = c("Sand/Fines <2mm (%)", "Gravel 2-64mm (%)",
    "Cobble 64-256mm (%)", "Boulder >256mm (%)"),
  peb_min = 0.03,
  peb_max = 1024
)

Arguments

qc_df

The survey data frame to be QC'd

cols_to_check_nas

columns to check for NAs in

valid_cus

character vector of valid channel unit types

ted_min

minimum acceptable value for thalweg exit depth

ted_max

maximum acceptable value for thalweg exit depth

md_min

minimum acceptable value for max channel unit depth

md_max

maximum acceptable value for max channel unit depth

cover_columns

character vector of column names for fish cover estimates

cov_max

maximum value that cover estimates can sum to

ocular_columns

character vector of column names for ocular substrate estimates

peb_min

minimum acceptable size for pebble size (mm)

peb_max

maximum acceptable size for pebble size (mm)

Value

a tibble with QC results

Author(s)

Mike Ackerman and Kevin See


mackerman44/DASH documentation built on Sept. 5, 2024, 8:14 a.m.