View source: R/bruceR-stats_1_basic.R
Freq | R Documentation |
Frequency statistics.
Freq(x, varname, labels, sort = "", digits = 1, file = NULL)
x |
A vector of values (or a data frame). |
varname |
[Optional] Variable name, if |
labels |
[Optional] A vector re-defining the labels of values. |
sort |
|
digits |
Number of decimal places of output. Defaults to |
file |
File name of MS Word ( |
A data frame of frequency statistics.
data = psych::bfi
## Input `data$variable`
Freq(data$education)
Freq(data$gender, labels=c("Male", "Female"))
Freq(data$age)
## Input one data frame and one variable name
Freq(data, "education")
Freq(data, "gender", labels=c("Male", "Female"))
Freq(data, "age")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.