Description Usage Arguments Value Author(s) See Also Examples
View source: R/abbreviate_factor.R
Calls the base::abbreviate() function on a factor, and returns a new factor with abbreviated level values.
1 | abbreviate_factor(x, n = 1e+09)
|
x |
factor |
n |
numeric positive integer passed to abbreviate(). |
a factor
Bill Forrest forrest@gene.com
1 2 | x <- factor( c( 'catttt', 'dogggg', 'catttt' ) )
out <- maeve:::abbreviate_factor( x, n = 3 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.