%in% {SparkR}R Documentation

Match a column with given values.

Description

Match a column with given values.

Usage

## S4 method for signature 'Column'
x %in% table

Arguments

x

a Column.

table

a collection of values (coercible to list) to compare with.

Value

A matched values as a result of comparing with given values.

Note

%in% since 1.5.0

Examples

## Not run: 
##D filter(df, "age in (10, 30)")
##D where(df, df$age %in% c(10, 30))
## End(Not run)

[Package SparkR version 2.4.0 Index]