CheckDuplicateRow: Is there any duplicate rows?

Description Usage Arguments Value Examples

Description

Check if there is any duplicate rows indexed by given columns. If YES, it will give warning.

Usage

1
CheckDuplicateRow(.data, .vars)

Arguments

.data

A data.frame.

.vars

Names of Columns to group by. If missing, use the first column name.

Value

TRUE if there exists duplicate rows, otherwise FALSE.

Examples

1
2
3
df <- data.frame(Id = c(1, 1), name = c("A", "B"))
flightscanner:::CheckDuplicateRow(df)
flightscanner:::CheckDuplicateRow(df, "name")

MinZhang95/flightscanner documentation built on July 1, 2019, 9:36 p.m.