remove_duplicate_rows: Remove duplicate rows considering all or a few columns

Description Usage Arguments Examples

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 May 30, 2019, 8:40 a.m.