Learn R Programming

tidyAML (version 0.0.6)

check_duplicate_rows: Check for Duplicate Rows in a Data Frame

Description

This function checks for duplicate rows in a data frame.

Usage

check_duplicate_rows(.data)

Value

A logical vector indicating whether each row is a duplicate or not.

Arguments

.data

A data frame.

Author

Steven P. Sanderson II, MPH

Details

This function checks for duplicate rows by comparing each row in the data frame to every other row. If a row is identical to another row, it is considered a duplicate.

See Also

duplicated, anyDuplicated

Other Utility: core_packages(), create_splits(), create_workflow_set(), fast_classification_parsnip_spec_tbl(), fast_regression_parsnip_spec_tbl(), full_internal_make_wflw(), install_deps(), load_deps(), match_args(), quantile_normalize()

Examples

Run this code
data <- data.frame(
  x = c(1, 2, 3, 1),
  y = c(2, 3, 4, 2),
  z = c(3, 2, 5, 3)
)

check_duplicate_rows(data)

Run the code above in your browser using DataLab