Description Usage Arguments Value Examples
Takes a function name and a character vector to be put inside independent calls of the function.
1 | createStringFunction(fun, inside = NULL)
|
fun |
character - the fucntion name as a string |
inside |
character vector - the items to put inside function |
character vector - of the form [1]"fun(inside[1])" ... [n]"fun(inside[n]))" where n is the lengh of inside. If inside is NULL it returns an empty string
1 2 3 4 5 | createStringFunction("library", c("ggplot2", "dyplr"))
#[1] "library(ggplot2)" "library(dyplr)"
createStringFunction("library")
#[1] ""
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.