subset.questionList: Subset questionList object

Description Usage Arguments Value Examples

View source: R/wrangling.R

Description

Subset questionList object

Usage

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

Arguments

x

A questionList object, most of the time the questions object from the Dutch Parliamentary Behaviour Dataset.

df

The name of the data.frame in the questionList to filter on. Options include metaList, questionerList, responderList, 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 questionList object.

Examples

1
subset(examplequestions, examplequestions$metaList, dateQuestion > as.Date("2010-01-04"))

louwerse/dutchparl documentation built on Nov. 19, 2018, 1:33 a.m.