Skip to contents

Take a subset of the rows of an index table (see mp_index) to produce another index table. The mp_subset function gives rows that match a certain criterion and mp_setdiff gives rows that do not match.

Usage

mp_subset(x, ...)

mp_setdiff(x, ...)

Arguments

x

Model index.

...

Name-value pairs. The names are columns (or sets of columns using dot-concatenation) in x and the values are character vectors that refer to labels with respect to those columns. These values determine the resulting subset.

See also

Other functions that return index tables mp_cartesian(), mp_index(), mp_rename(), mp_union()