duplicate: find all duplicated ones

Description Usage Arguments Value Examples

View source: R/duplicate.R

Description

find all duplicated ones

Usage

1
2
duplicate(x, column_between = FALSE, row_between = FALSE,
  row_in = FALSE, column_in = FALSE, every = FALSE)

Arguments

x

can be number, strings, verctors, dataframe or matrix

column_between

TRUE is to detect the duplicated rows.

row_between

TRUE is to detect the duplicated columns.

row_in

TRUE is to detect the duplicated values in each row.

column_in

TRUE is to detect the duplicated values in each column.

every

TRUE is to detect the duplicated values in dataframe or matrix.

Value

TRUE as duplicated, FALSE as not

Examples

1
2
3
4
5
6
7
8
x <- c('a','b','a',1,1,2)
duplicate(x)
a = data.frame(k=c(1,1,2,1,4),
l=c(1,1,'a',5,6))
duplicate(a,row_in = TRUE)
duplicate(a,row_between = TRUE)
duplicate(a,column_between = TRUE)
duplicate(a,column_in = TRUE)

yikeshu0611/do documentation built on Aug. 5, 2021, 4:17 p.m.