pasteif: Paste If

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Pastes something only if the condition is met.

Usage

1
pasteif(..., sep = "", cond, return_value = NULL)

Arguments

...

one or more R objects, to be passed to paste0 if cond is TRUE.

sep

default "" - equiv. to paste0

cond

boolean, condition to be true.

return_value

Value

string. If condition is false returns return_value. default is NULL

Examples

1
pasteif("1", "st", cond = (3 < 2))

vsenderov/rdf4r documentation built on May 3, 2019, 4:02 p.m.