Skip to contents

Return a new SparkDataFrame containing the distinct rows in this SparkDataFrame.

Usage

distinct(x)

# S4 method for SparkDataFrame
distinct(x)

# S4 method for SparkDataFrame
unique(x)

Arguments

x

A SparkDataFrame

Note

distinct since 1.4.0

unique since 1.5.0

Examples

if (FALSE) {
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
distinctDF <- distinct(df)
}