check_options_graph | R Documentation |
Check if options are available in the options list, replace by a default otherwise.
check_options_graph(options_selected, options_available, default)
options_selected |
List of characters. Selected options. |
options_available |
List of characters. Valid options. |
default |
List of characters. Default options. |
Options consistent with the possibilities
check_options_graph(c('car','pedestrian'),
c('car','pedestrian','bike','heavy'),c('car','heavy'))
check_options_graph(c('coucou','salut'),
c('car','pedestrian','bike','heavy'),c('car','heavy'))
check_options_graph(NULL,
c('car','pedestrian','bike','heavy'),c('car','heavy'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.