KH.ifNull: Assign value to the variable.

Description Usage Arguments Details Value See Also Examples

View source: R/Helper.R

Description

Assign value to the variable.

Usage

1
KH.ifNull(userSet, defaultSet)

Arguments

userSet

Mixed The desired value to assign as output.

defaultSet

Mixed. The default used when the userSet is NULL.

Details

Useful for times checking for NULL and decide the outcome of a value.

Value

Mixed. New value of the variable.

See Also

Other Utils: KH.changeDecimal, KH.roundAll

Examples

1
2
3
4
5
KH.ifNull(NULL, 'B Nazanin')
#[1] "B Nazanin"

KH.ifNull('defaultFont', 'B Nazanin')
#[1] "defaultFont"

ks465/r-utils documentation built on May 23, 2019, 5:07 p.m.