otg_to_cu: Rollup Channel Unit Data

View source: R/otg_to_cu.R

otg_to_cuR Documentation

Rollup Channel Unit Data

Description

Clean channel unit data (e.g., from ⁠otg_type =⁠ "CU_1.csv") and join survey/site information to it

Usage

otg_to_cu(
  survey_df = NULL,
  cu_df = NULL,
  wood_df = NULL,
  jam_df = NULL,
  undercut_df = NULL,
  discharge_df = NULL,
  fix_nas = TRUE,
  wood_impute_cols = c("length_m", "diameter_m"),
  jam_impute_cols = c("length_m", "width_m", "height_m", "estimated_number_of_pieces"),
  undercut_impute_cols = c("length_m", "width_25_percent_m", "width_50_percent_m",
    "width_75_percent_m"),
  ...
)

Arguments

survey_df

data.frame of ⁠otg_type =⁠ "surveyPoint_0.csv" containing information for each site/survey

cu_df

data.frame of ⁠otg_type =⁠ "CU_1.csv" containing data for each channel unit

wood_df

data.frame of ⁠otg_type =⁠ "Wood_2.csv" containing the individual wood data to be summarized by channel units

jam_df

data.frame of ⁠otg_type =⁠ "Jam_3.csv containing the individual jam data to be summarized (rolled up) to the channel unit scale

undercut_df

data.frame of ⁠otg_type =⁠ "Undercut_4.csv" containing the individual undercut data to be summarized (rolled up) to the channel unit scale

discharge_df

input data.frame of ⁠otg_type =⁠ "DischargeMeasurements_6.csv" containing the station width, depth, and velocity data to estimate discharge

fix_nas

if any of the length, width, height, or estimated number of pieces measurements for an individual jam is missing i.e.,NA, would you like to fill them in? Default is TRUE, in which case the NA values will be imputed using function impute_missing_values()

...

other arguments to impute_missing_values()

Value

a data.frame summarizing data for channel units

Author(s)

Mike Ackerman, Kevin See, Richie Carmichael


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