find_duplicate_rows: Find duplicate rows

Description Usage Arguments Value Examples

Description

Check a data frame of quadrat data for duplicate data (possibly data entry error). User supplies list of "key" column names that should define a unique entry (e.g. quadrat, date, species should be associated with a single count value). This function ignores rows with NA or missing values in the key columns.

Usage

1

Arguments

df

Data frame of quadrat data

columns

Vector of column names that determine unique key. (e.g. columns = c('quadrat', 'date', 'species'))

Value

Rows from df that are duplicates according to the given key, plus an additional column indicating error_type. If there are no errors, this will return an empty data frame.

Examples

1
find_duplicate_rows(df, columns = c('quadrat', 'year', 'month', 'USDA_code'))

emchristensen/quadprocessing documentation built on May 4, 2019, 4:15 a.m.