add: Create function that adds text elements to vector

View source: R/modifyHelpers.R

addR Documentation

Create function that adds text elements to vector

Description

Create function that adds text elements to vector

Usage

add(..., .pos = "bottom")

Arguments

...

Elements to add.

.pos

Either \"top\" or \"bottom\". Decides if new text is prepended or appended to existing text.

Value

A function that adds the specified text to character vectors

Examples

myfun <- add("b","d")
myfun("a")
myfun2 <- add("b","d",.pos="top")
myfun2("a")

NMsim documentation built on Nov. 2, 2024, 9:06 a.m.

Related to add in NMsim...