View source: R/chooseShortName.R
chooseShortName | R Documentation |
A very simple and short algorithm to choose a short name based on a given name
chooseShortName(
fullname = stop("Invalid string name entered."),
withPrefix = NULL,
withSuffix = NULL,
envir = NULL,
silent = FALSE
)
fullname |
The name you intend to shorten |
withPrefix |
Prefix to include in front of the new short name |
withSuffix |
Suffix to include in front of the new short name |
envir |
The environment where to store the name |
silent |
Return response at the end of evaluations? |
Short forms of functions
long_function_name <- 'longFunctionCall'
short_function_name <- chooseShortName(long_function_name)
short_function_name # the result should "lFC"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.