counts.Rd
NA as considered valid and their counts are calculated.
counts(vec)
An atomic vector
A named integer vector
counts(c(1,2,2,2,1,NA))#> 1 2 <NA> #> 2 3 1