approxCountDistinct {SparkR} | R Documentation |
Returns the approximate number of distinct items in a group. This is a column aggregate function.
approxCountDistinct(x, ...) ## S4 method for signature 'Column' approxCountDistinct(x, rsd = 0.05) ## S4 method for signature 'Column' approxCountDistinct(x, rsd = 0.05)
x |
Column to compute on. |
... |
further arguments to be passed to or from other methods. |
rsd |
maximum estimation error allowed (default = 0.05) |
the approximate number of distinct items in a group.
approxCountDistinct(Column) since 1.4.0
approxCountDistinct(Column, numeric) since 1.4.0
## Not run: approxCountDistinct(df$c)
## Not run: approxCountDistinct(df$c, 0.02)