countDistinct {SparkR} | R Documentation |
Count Distinct
Aggregate function: returns the number of distinct items in a group.
countDistinct(x, ...) n_distinct(x, ...) ## S4 method for signature 'Column' countDistinct(x, ...) ## S4 method for signature 'Column' n_distinct(x, ...)
the number of distinct items in a group.
Other agg_funcs: agg
,
approxCountDistinct
, avg
,
first
, kurtosis
,
last
, max
,
mean
, min
, n
,
sd
, skewness
,
stddev_pop
, stddev_samp
,
sumDistinct
, sum
,
var_pop
, var_samp
,
var
## Not run: countDistinct(df$c)
## Not run: n_distinct(df$c)