chooseShortName: Short algorithm to choose a short name based on a given long...

Description Usage Arguments Value Examples

View source: R/chooseShortName.R

Description

A very simple and short algorithm to choose a short name based on a given name

Usage

1
2
3
4
5
6
7
chooseShortName(
  fullname = stop("Invalid string name entered."),
  withPrefix = NULL,
  withSuffix = NULL,
  envir = NULL,
  silent = FALSE
)

Arguments

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?

Value

Short forms of functions

Examples

1
2
3
long_function_name <- 'longFunctionCall'
short_function_name <- chooseShortName(long_function_name)
short_function_name # the result should "lFC"

r2shortcode documentation built on July 2, 2020, 4:15 a.m.