yesno: Convert a Boolean to a String

Description Usage Arguments Details Value

View source: R/util.R

Description

Returns 'yes' or 'no' based off of the provided boolean input.

Usage

1
yesno(bool, yes = "yes", no = "no")

Arguments

bool

the boolean value to test.

yes

the value to return on a true input.

no

the value to return on a false input.

Details

If yes is specified, the value of yes is used instead of the default value 'yes'.

If no is specified, the value of no is used instead of the default value 'no'.

Value

'yes' or 'no'.


RlonRyan/QuikR documentation built on May 14, 2019, 3:09 a.m.