check_options_graph: Check if options are available in the options list, replace...

View source: R/utils_graph.R

check_options_graphR Documentation

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)

Arguments

options_selected

List of characters. Selected options.

options_available

List of characters. Valid options.

default

List of characters. Default options.

Value

Options consistent with the possibilities

Examples

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'))


telraamStats documentation built on May 29, 2024, 10:08 a.m.