reprate {xefun} | R Documentation |
char repetition rate
Description
reprate estimates the max rate of character repetition.
Usage
reprate(x, col)
Arguments
x |
a character vector or a data frame. |
col |
a character column name. |
Value
a numeric vector indicating the max rate of character repetition in the corresponding elements in argument x vector.
Examples
x = c('a', 'aa', 'ab', 'aab', 'aaab')
reprate(x)
reprate(data.frame(x=x), 'x')
[Package xefun version 0.1.5 Index]