| abbreviation | R Documentation |
Determines if one character variable is an abbreviation among a section of other character variables.
abbreviation(x, choices)
x |
A character string, and consists of some or all letters in a value in |
choices |
A vector of character strings. |
The function abbreviation returns a value in choices specified by x,
which may be an abbreviation. If no such abbreviation exists, then the original value of x is returned.
The value in choices, which can be abbreviated by x.
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
choices = c("two.sided", "less", "greater")
abbreviation( "two", choices )
abbreviation( "l", choices )
abbreviation( "gr", choices )
abbreviation( "greater", choices )
abbreviation( "Not in choices", choices )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.