powered by
Count (cumulative) frequency and percentage using user-defined values
freq(x, val)
a vector being counted
a vector of valid counting values
# NOT RUN { freq(sample(1:4, 150, replace=TRUE), 5:1) freq(sample(1:4, 150, replace=TRUE), 1:3) # }
Run the code above in your browser using DataLab