freq.Rd
NA as considered valid and their proportions are calculated.
freq(vec)
An atomic vector
A vector of frequencies as proportions with same length as the vector.
freq(c(1,2,2,2,1,NA))#> [1] 0.3333333 0.5000000 0.5000000 0.5000000 0.3333333 0.1666667