powered by
Returns the approximate number of distinct items in a group. This is a column aggregate function.
approxCountDistinct(x, ...)# S4 method for Column approxCountDistinct(x, rsd = 0.05)# S4 method for Column approxCountDistinct(x, rsd = 0.05)
# S4 method for Column approxCountDistinct(x, rsd = 0.05)
Column to compute on.
further arguments to be passed to or from other methods.
maximum estimation error allowed (default = 0.05)
the approximate number of distinct items in a group.
# NOT RUN { approxCountDistinct(df$c) # } # NOT RUN { approxCountDistinct(df$c, 0.02) # }
Run the code above in your browser using DataLab