filter.table: Filter data frame

Usage Arguments Value Author(s) Examples

Usage

1
filter.table(tab, filt = list())

Arguments

tab

Data frame to filter

filt

List of values of table headings to filter on

Value

Filtered data frame

Author(s)

David Sterratt

Examples

1
2
3
4
5
dat <- data.frame(a=1:5,
                  b=c(2, 2, 3, 3, 3),
                  c=c(5, 5, 5, 7, 7))
filter.table(dat, list(a=1))
filter.table(dat, list(b=3, c=5))

davidcsterratt/dcsmisc documentation built on May 14, 2019, 11:10 p.m.