Learn R Programming

telraamStats (version 1.1.2)

check_options_graph: Check if options are available in the options list, replace by a default otherwise.

Description

Check if options are available in the options list, replace by a default otherwise.

Usage

check_options_graph(options_selected, options_available, default)

Value

Options consistent with the possibilities

Arguments

options_selected

List of characters. Selected options.

options_available

List of characters. Valid options.

default

List of characters. Default options.

Examples

Run this code
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'))

Run the code above in your browser using DataLab