Skip to contents

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

Usage

distinct(x)

# S4 method for class 'SparkDataFrame'
distinct(x)

# S4 method for class 'SparkDataFrame'
unique(x)

Arguments

x

A SparkDataFrame

Note

distinct since 1.4.0

unique since 1.5.0

Examples

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