View source: R/modifyHelpers.R
add | R Documentation |
Namely used to feed functions to modify control streams using 'NMsim()' arguments such as 'modify'. Those functions are often onveniently passed a function. 'add' and 'overwrite' are simple shortcuts to creating such functions. Make sure to see examples.
add(..., .pos = "bottom")
... |
Elements to add. |
.pos |
Either "top" or "bottom". Decides if new text is prepended or appended to existing text. |
A function that adds the specified text to character vectors
myfun <- add("b","d")
myfun("a")
## If more convenient, you can add a vector instead.
myfun2 <- add(c("b","d"))
myfun2("a")
myfun3 <- add("b","d",.pos="top")
myfun3("a")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.