get_non_unique_rows: Get non-unique rows in a dataframe

Description Usage Arguments Author(s) Examples

View source: R/get_non_unique_rows.R

Description

Return a dataframe where the the rows are non-unique in terms of a varialbe

Usage

1
get_non_unique_rows(a_df, a_var)

Arguments

a_df

a dataframe

a_var

a variable, for defining row uniqueness

Author(s)

Lingyun (Larry) Zhang lyzhang10@gmail.com

Examples

1
2
3
4
5
fk_data <-
data.frame(x = c(rep("a", 2), rep("b", 3), rep("c", 5), letters[11:20]),
y = rnorm(20),
stringAsFactor = FALSE)
test_df <- get_non_unique_rows(a_df = fk_data, a_var = "x")

zhanglynz/myhelper documentation built on Sept. 26, 2021, 3:33 a.m.