except {SparkR}R Documentation

except

Description

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

Usage

## S4 method for signature 'DataFrame,DataFrame'
except(x, y)

except(x, y)

Arguments

x

A Spark DataFrame

y

A Spark DataFrame

Value

A DataFrame containing the result of the except operation.

Examples

## Not run: 
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D df1 <- jsonFile(sqlContext, path)
##D df2 <- jsonFile(sqlContext, path2)
##D exceptDF <- except(df, df2)
## End(Not run)

[Package SparkR version 1.5.2 Index]