| lvl_number | R Documentation | 
Return the numeric position of a level in a factor variable
lvl_number(f, lvl)
f | 
 A factor variable  | 
lvl | 
 The level for which the underlying value is returned  | 
The numeric position of the level
lvl_number(iris$Species, "versicolor")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.