Last chance! 50% off unlimited learning
Sale ends in
NOTE: This man page is for the duplicated
and anyDuplicated
S4 generic functions defined in the BiocGenerics package.
See ?base::duplicated
for the default methods
(defined in the base package).
Bioconductor packages can define specific methods for objects
(typically vector-like or data-frame-like) not supported by the
default method.
duplicated(x, incomparables=FALSE, ...)
anyDuplicated(x, incomparables=FALSE, ...)
?base::duplicated
for a description of
these arguments.
duplicated
method (see
?base::duplicated
) returns a logical vector
of length N where N is:
length(x)
when x
is a vector;
nrow(x)
when x
is a data frame.
duplicated
methods defined in Bioconductor
packages must also return a logical vector of the same length
as x
when x
is a vector-like object, and a logical
vector with one element for each row when x
is a
data-frame-like object.The default anyDuplicated
method (see
?base::duplicated
) returns a single
non-negative integer and so must the specific anyDuplicated
methods defined in Bioconductor packages.anyDuplicated
should always behave consistently with
duplicated
.
base::duplicated
for the default
duplicated
and anyDuplicated
methods.
showMethods
for displaying a summary of the
methods defined for a given generic function.
selectMethod
for getting the definition of
a specific method.
duplicated
method
(defined for Rle objects).
duplicated
showMethods("duplicated")
selectMethod("duplicated", "ANY") # the default method
anyDuplicated
showMethods("anyDuplicated")
selectMethod("anyDuplicated", "ANY") # the default method
Run the code above in your browser using DataLab