Learn R Programming

xefun (version 0.1.5)

reprate: char repetition rate

Description

reprate estimates the max rate of character repetition.

Usage

reprate(x, col)

Value

a numeric vector indicating the max rate of character repetition in the corresponding elements in argument x vector.

Arguments

x

a character vector or a data frame.

col

a character column name.

Examples

Run this code
x = c('a', 'aa', 'ab', 'aab', 'aaab')
reprate(x)

reprate(data.frame(x=x), 'x')

Run the code above in your browser using DataLab