powered by
Frequency statistics.
Freq(var, label = NULL, sort = "", digits = 1, nsmall = digits, file = NULL)
Variable (or a vector of values).
[Optional] A vector re-defining the labels of values.
"" (default, sorted by the order of variable values/labels), "-" (decreasing by N), or "+" (increasing by N).
""
"-"
"+"
Number of decimal places of output. Default is 1.
1
File name of MS Word (.doc).
.doc
A data frame of frequency statistics.
# NOT RUN { data=psych::bfi Freq(data$education) Freq(data$gender, label=c("Male", "Female")) Freq(data$age) # }
Run the code above in your browser using DataLab