preferred_choice | R Documentation |
Select a vector element using a ranked set of preferences.
preferred_choice(x, preferences, default = 1, missing = NA)
x |
Named vector of possible choices |
preferences |
Ranked vector of names of |
default |
Element of |
missing |
Value returned instead of |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.