match: Match a column with given values.

Description Usage Arguments Value Note Examples

Description

Match a column with given values.

Usage

1
2
## 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

1
2
3
4
5
## Not run: 
filter(df, "age in (10, 30)")
where(df, df$age %in% c(10, 30))

## End(Not run)

SparkR documentation built on June 3, 2021, 5:05 p.m.