exact number of repeats desired, defaults to pairs.
…
further arguments to be passed to or from other methods.
Value
Logical.
Details
This is a generic function, with methods supplied for data frames and vectors. The default behavior tests for existence of pairs of elements of x. One can test existence of triples, etc., by changing the nrep argument. If there are specific values for which one is looking for repeats, these can be specified with the vals argument. Note that the function only checks for exactlynrep instances, so two pairs of a specific element would be counted as 0 pairs and 1 quadruple. See the examples.
The data frame method uses apply to apply isrep.default to each row of the data frame.