powered by
It acts similiarly to Excel's COUNT function. It counts the amount of values in the given array.
COUNT(value)
Count amount of the values in the range.
In this example we count the amount of species in the built-in iris dataset. Function will always return numeric class.
# NOT RUN { COUNT(iris$Species) # }
Run the code above in your browser using DataLab