grepMultipleEntries: Records with duplicates in selected columns

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/extract.R

Description

Subset a data.frame wich multiple entries in one or more columns.

Usage

1

Arguments

d.frame

data.frame

var

variable(s) to search for duplicates

...

Arguments passed to further functions

Details

The multiple entries are found with duplicated() and the whole records of these entries are returned.

Value

Subset of data.frame for which selection conditions are met

Note

under continuous developement

Author(s)

Roland Rapold

References

none

See Also

grepColEntries grepColNames grepColNA grepObjNames grepNotCompleteEntries grepRowNames grepColNegNum grepColFactors

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if(require("MASS"))
{
    data(crabs, package="MASS")
    #
    # - with one column
    print(head(grepMultipleEntries(crabs, "FL"), n=10))
    #
    # - with two columns
    print(head(grepMultipleEntries(crabs, c("sex", "FL"))))
}

rrMisc documentation built on June 25, 2021, 3 a.m.