Skip to contents

Function chooses arg1 unless it is NULL in which case arg2 is chosen.

Usage

poped.choose(arg1, arg2)

Arguments

arg1

The first argument

arg2

The second argument

Examples


poped.choose(2,5)
#> [1] 2

poped.choose("foo",66)
#> [1] "foo"

poped.choose(NULL,"hello")
#> [1] "hello"