Learn R Programming

translateSPSS2R (version 1.0.0)

xpssAny: Selecting cases by condition

Description

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

Usage

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.

See Also

xpssCount %in% is.element

Examples

Run this code
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"))

Run the code above in your browser using DataLab