chooseShortName {r2shortcode}R Documentation

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
)

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

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


[Package r2shortcode version 0.2 Index]