Learn R Programming

r2shortcode (version 0.2)

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

Description

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

Usage

chooseShortName(
  fullname = stop("Invalid string name entered."),
  withPrefix = NULL,
  withSuffix = NULL,
  envir = NULL,
  silent = FALSE
)

Value

Short forms of functions

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?

Examples

Run this code
long_function_name <- 'longFunctionCall'
short_function_name <- chooseShortName(long_function_name)
short_function_name # the result should "lFC"

Run the code above in your browser using DataLab