remove_duplicate_rows: Remove duplicate rows considering all or a few columns

Description Usage Arguments Examples

View source: R/remove_duplicate_rows.R

Description

Remove duplicate rows considering all or a few columns

Usage

1
remove_duplicate_rows(x, columnNames, ...)

Arguments

x

A dataframe

columnNames

Names of the columns to use for computing duplicates. If not specified, all columns are used.

...

Arguments to be passed to 'duplicated' function

Examples

1
2
3
temp <- data.frame(x = c(1, 2, 3, 1), y = c(1, 3, 3, 1), z = c(1, 2, 3, 2))
remove_duplicate_rows(temp)
remove_duplicate_rows(temp, c("x", "y"))

talegari/sidekicks documentation built on Sept. 26, 2018, 4:18 p.m.