Learn R Programming

numform (version 0.6.4)

f_abbreviation: Abbreviate Strings

Description

A wrapper for abbreviate for abbreviating strings.

Usage

f_abbreviation(x, length = 5, ...)

ff_abbreviation(...)

Arguments

x

A vector of text strings.

length

The minimum length of the abbreviations.

Other arguments passed to abbreviate.

Value

Returns a string vector with strings abbreviated.

See Also

abbreviate

Examples

Run this code
# NOT RUN {
f_abbreviation(state.name)
f_abbreviation('Cool Variable')
# }

Run the code above in your browser using DataLab