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