R/utils.R
is_tied.Rd
Tied data
is_tied(x, ratio = 0.3, remove_NA = FALSE)
A numeric vector
Numeric (default: 0.3). The ratio threshold of being considred as tied-data. The value range from 0 to 1.
Logical (default: TRUE). Whether or not to remove NAs.
Logical
is_tied(c(1, 1, 2, 2, 2, 3, 4, 5)) #> [1] TRUE #> TRUE