View source: R/str2str_functions.R
| codes | R Documentation | 
codes returns the integer codes for each factor level from a factor.
codes(fct)
| fct | factor. | 
integer vector with length = length(levels(fct)), elements = integer
codes of fct and names = levels(fct).
codes(state.region)
codes(iris$"Species")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.