SparkR (version 2.1.2)

array_contains: array_contains

Description

Returns true if the array contain the value.

Usage

array_contains(x, value)

# S4 method for Column array_contains(x, value)

Arguments

x

A Column

value

A value to be checked if contained in the column

See Also

Other collection_funcs: explode, posexplode, size, sort_array

Examples

Run this code
# NOT RUN {
array_contains(df$c, 1)
# }

Run the code above in your browser using DataLab