ifExistsElse: ifExistsElse

View source: R/Stringendo.R

ifExistsElseR Documentation

ifExistsElse

Description

Checks if a variable is defined, else returns an alternative value.

Usage

ifExistsElse(varname, alternative = "define an alternative", v = F)

Arguments

varname

Name of the variable

alternative

Alternative value to return if the variable is not defined

v

Print messages. Default is FALSE.

Examples

ifExistsAndTrue("pi"); ifExistsAndTrue("pi22")


vertesy/Stringendo documentation built on Nov. 10, 2024, 4:35 a.m.