xpssAny: Selecting cases by condition

Description Usage Arguments Value Author(s) See Also Examples

View source: R/xpssAny.R

Description

xpssAny can be perceived as a wrapper function for %in% applicable on more than one variable.

Usage

1
xpssAny(x, st = NULL, nd = NULL)

Arguments

x

a (non-empty) data.frame or input data of class "xpssFrame".

st

atomic numeric or atomic character with a single value to search for OR variable where to search in.

nd

atomic numeric or atomic character, respecetively as numeric vector or character vector with values to search for OR variables to search in.

Value

A logical vector with matched conditions.

Author(s)

Andreas Wygrabek

See Also

xpssCount %in% is.element

Examples

1
2
3
4
5
6
7
8
9
data(fromXPSS)

xpssAny(fromXPSS, 310, c("V7_1", "V7_2"))

xpssAny(fromXPSS, "V7_1", c(310,320,170))

xpssAny(fromXPSS, "Audi", c("V1", "V7_2"))

xpssAny(fromXPSS, "V1", c("Audi"))

translateSPSS2R documentation built on May 30, 2017, 4:31 a.m.