Description Usage Arguments Details Value Author(s) Examples
Determines if one character variable is an abbreviation among a section of other character variables.
1 | 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
1 2 3 4 5 6 7 8 9 10 11 | choices = c("two.sided", "less", "greater")
abbreviation( "two", choices )
abbreviation( "l", choices )
abbreviation( "gr", choices )
abbreviation( "greater", choices )
abbreviation( "Not in choices", choices )
|
[1] "two.sided"
[1] "less"
[1] "greater"
[1] "greater"
[1] "Not in choices"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.