duplicated: Determine duplicate elements, possibly in both directions

Description Usage Arguments Details

View source: R/Misc.R

Description

Determine duplicate elements, possibly in both directions

Usage

1
duplicated(x, incomparables = FALSE, fromLast = FALSE, ...)

Arguments

x

a vector or a data frame or an array or NULL.

incomparables

a vector of values that cannot be compared. FALSE is a special value, meaning that all values can be compared, and may be the only value accepted for methods other than the default. It will be coerced internally to the same type as x.

fromLast

logical indicating if duplication should be considered from the reverse side (TRUE), the start (FALSE), or from both sides (NA)

...

arguments for particular methods

Details

In the case of fromLast either TRUE or FALSE, base::duplicated is called directly. Only when it's NA, comparison is done from both sides


EmilBode/EmilMisc documentation built on Feb. 24, 2020, 4:11 p.m.