Count the number of distinct elements in a vector or a matrix.
a vector or a matrix.
A scalar giving te number of distinct elements in x.
Antoine Filipovic Pierucci
nDistinct(c(1, 3, 3, 5))
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.