classify.fn | R Documentation |
Clssifies unique values (characters, factors, etc) Different from year in that year converts the year to integer, whereas this function does not.
classify.fn(dat, colnm, z, nmcol = paste(colnm, "new", sep = ""), 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.