approxCountDistinct {SparkR} | R Documentation |
Returns the approximate number of distinct items in a group. This is a column aggregate function.
## S4 method for signature 'Column' approxCountDistinct(x, rsd = 0.05) ## S4 method for signature 'Column' approxCountDistinct(x, rsd = 0.05) approxCountDistinct(x, ...)
x |
Column to compute on. |
rsd |
maximum estimation error allowed (default = 0.05) |
... |
further arguments to be passed to or from other methods. |
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)