countDistinct {SparkR}R Documentation

Count Distinct

Description

Count Distinct

Aggregate function: returns the number of distinct items in a group.

Usage

## S4 method for signature 'Column'
countDistinct(x, ...)

## S4 method for signature 'Column'
n_distinct(x, ...)

countDistinct(x, ...)

n_distinct(x, ...)

Value

the number of distinct items in a group.

See Also

Other agg_funcs: approxCountDistinct, approxCountDistinct, approxCountDistinct; avg, avg; count, count, count, n, nrow; first, first; last, last; max; mean; min; sumDistinct, sumDistinct; sum

Other agg_funcs: approxCountDistinct, approxCountDistinct, approxCountDistinct; avg, avg; count, count, count, n, nrow; first, first; last, last; max; mean; min; sumDistinct, sumDistinct; sum


[Package SparkR version 1.5.1 Index]