Skip to contents

Return a new SparkDataFrame containing rows in this SparkDataFrame but not in another SparkDataFrame. This is equivalent to EXCEPT DISTINCT in SQL.

Usage

except(x, y)

# S4 method for SparkDataFrame,SparkDataFrame
except(x, y)

Arguments

x

a SparkDataFrame.

y

a SparkDataFrame.

Value

A SparkDataFrame containing the result of the except operation.

Note

except since 1.4.0

Examples

if (FALSE) {
sparkR.session()
df1 <- read.json(path)
df2 <- read.json(path2)
exceptDF <- except(df, df2)
}