subset.voteList: Subset voteList object

Description Usage Arguments Value Examples

View source: R/wrangling.R

Description

Subset voteList object

Usage

1
2
## S3 method for class 'voteList'
subset(x, df, subset, select, drop = FALSE, drop.levels = TRUE, ...)

Arguments

x

A voteList object, most of the time the votes object from the Dutch Parliamentary Behaviour Dataset.

df

The name of the data.frame in the voteList to filter on. Options include metaList, sponsorList, and categoryList.

subset

The subset command.

select

Expression, indicating columns to select from data frame

drop

passed on to [ indexing operator

drop.levels

If true, superfluous levels in the data.frames will be removed.

...

Other parameters (ignored)

Value

The subsetted voteList object.

Examples

1
subset(examplevotes, examplevotes$metaList, date > as.Date("2010-01-15"))

louwerse/dutchparl documentation built on Aug. 14, 2021, 3:02 a.m.