classifyMult.fn | R 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
classifyMult.fn(
dat,
colnm,
z,
nmcol = paste(colnm, "new", sep = ""),
strNms = NULL,
subset = F
)
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. |
Allan Hicks and Chantel Wetzel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.