count_duplicates: Count duplicates

count_duplicatesR Documentation

Count duplicates

Description

This function searches though a data frame for duplicate entries to ensure that extra responses don't mess up your data analysis. The function returns a list that shows a table with the observed counts of responses and the total count of the extra responses (assuming that each person is supposed to have one response each)

Usage

count_duplicates(df, col, character_data = TRUE)

Arguments

df

Your data set

col

The specific column within the data set to look in (e.g., a column of participant's names or emails). UNQUOTED!!!

character_data

Indicate with TRUE or FALSE whether or not the supplied column is a vector of character data or not.

Examples

count_duplicates(mtcars,cyl, character_data=FALSE)

ryan-a-schneider/legaldmlab documentation built on July 2, 2023, 5:02 a.m.