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