countDistinct {SparkR} | R Documentation |
Count Distinct
Aggregate function: returns the number of distinct items in a group.
## S4 method for signature 'Column' countDistinct(x, ...) ## S4 method for signature 'Column' n_distinct(x, ...) countDistinct(x, ...) n_distinct(x, ...)
the number of distinct items in a group.
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