powered by
reprate estimates the max rate of character repetition.
reprate(x, col)
a numeric vector indicating the max rate of character repetition in the corresponding elements in argument x vector.
a character vector or a data frame.
a character column name.
x = c('a', 'aa', 'ab', 'aab', 'aaab') reprate(x) reprate(data.frame(x=x), 'x')
Run the code above in your browser using DataLab