showDups: View all your duplicate entries to decide which to remove

Description Usage Arguments Value See Also Examples

Description

Return a logical vector of all duplicate entries.

Often times, you want to review your duplicate results to determine which rows you want to keep and which you want to erase.

For example, if you have an application number that is an application, and another that is a search report, then you will want to keep the application data and remove the search report entry.

Or, if you have an application number that has both a grant and an application entry, you may want to remove the application from your analysis and focus on the grant data, as the claim scope is most important for the granted patent.

Usage

1
showDups(input)

Arguments

input

A vector or a data frame which you wish to view duplicated values.

Value

A logical vector of TRUE / FALSE with all entries that contain two or more duplicate values.

See Also

duplicated, removeDups

Examples

1
2
acarsDups <- acars[showDups(acars$appNum),]
head(acarsDups[order(acarsDups$appNum),c("docNum","docTypeSumobrain","appNum")])

kamilien1/patentR documentation built on May 20, 2019, 7:19 a.m.