ifExistsElse | R Documentation |
Checks if a variable is defined, else returns an alternative value.
ifExistsElse(varname, alternative = "define an alternative", v = F)
varname |
Name of the variable |
alternative |
Alternative value to return if the variable is not defined |
v |
Print messages. Default is FALSE. |
ifExistsAndTrue("pi"); ifExistsAndTrue("pi22")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.