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))
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.