classify.fn: Clssifies unique values (characters, factors, etc) Different...

View source: R/Classify.R

classify.fnR Documentation

Clssifies unique values (characters, factors, etc) Different from year in that year converts the year to integer, whereas this function does not.

Description

Clssifies unique values (characters, factors, etc) Different from year in that year converts the year to integer, whereas this function does not.

Usage

classify.fn(dat, colnm, z, nmcol = paste(colnm, "new", sep = ""), 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/nwfscDiscardBootstrap documentation built on July 3, 2023, 11:03 p.m.