classifyMult.fn: clssifies values that may contain multiple levels per factor...

View source: R/ClassifyMult.R

classifyMult.fnR Documentation

clssifies values that may contain multiple levels per factor (characters, factors, etc) e.g., WA & OR into WaOR different from year in that year converts the year to integer, whereas this function does not

Description

clssifies values that may contain multiple levels per factor (characters, factors, etc) e.g., WA & OR into WaOR different from year in that year converts the year to integer, whereas this function does not

Usage

classifyMult.fn(
  dat,
  colnm,
  z,
  nmcol = paste(colnm, "new", sep = ""),
  strNms = NULL,
  subset = F
)

Arguments

dat

the dataframe of observations

colnm

unsure how this is different from colnms

z

the values to classify that variable, as vectors within list elements. Should be unique values.

nmcol

name of additional column to add that indicates the values specified. An NA will be put for values that are not in z.

subset

whether or not to return a dataframe with only rows that meet criteria. Default value FALSE.

Author(s)

Allan Hicks and Chantel Wetzel


nwfsc-assess/nwfscDiscard documentation built on June 28, 2023, 6:06 p.m.