addGroupCol: Add Group Col for Corrections

Description Usage Arguments Value

View source: R/uvhydrograph-data.R

Description

helper function to create table of information for placing corrections labels

Usage

1
2
addGroupCol(data, newColumnName, isNewCol, newGroupValue = NULL,
  groupChildValue = NULL, vars = NULL)

Arguments

data

existing table data (for corrections)

newColumnName

name of column to place new data derived

isNewCol

function to determine if new column should be created for derived data

newGroupValue

function for deriving new data from existing data

groupChildValue

function to ??? TODO

vars

variables to pass into newGroupValue and groupChildValue

Value

mutated data table (with added columns/rows)


USGS-R/repgen documentation built on April 14, 2021, 2:47 p.m.