view_duplicated: Show Duplicated Rows

Description Usage Arguments Value See Also Examples

View source: R/view_duplicated.R

Description

Finds all duplicated rows by column(s). Equivalent to doing data[duplicated(data) | duplicated(data, fromLast = TRUE), ]

Usage

1

Arguments

data

a data frame

...

columns to search for duplicated values, defaults to all arguments; can also apply dplyr special functions

Value

a data frame with duplicated rows by given columns

See Also

remove_duplicated to remove duplicates

Examples

1
2
3
4
5
d <- data.frame(x1 = rep(1:3, each=4), x2 = rep(1:4, each=3), z = rep(1:2, 6), a = rep(1:6, 2))
view_duplicated(data = d, x2, z)
view_duplicated(d, a, z)
view_duplicated(d)
view_duplicated(d, starts_with("x"))

jennguyen1/jn.general documentation built on March 20, 2018, 4:26 a.m.