powered by
computes the frequency and percentage of given values
freq(x, val = NULL)
a vector of raw data
a vector of valid values, NULL for all values
NULL
# NOT RUN { freq(sample(1:4, 150, replace=TRUE)) 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