Freq {bruceR}R Documentation

Frequency statistics.

Description

Frequency statistics.

Usage

Freq(var, label = NULL, sort = "", digits = 1, nsmall = digits, file = NULL)

Arguments

var

Variable (or a vector of values).

label

[Optional] A vector re-defining the labels of values.

sort

"" (default, sorted by the order of variable values/labels), "-" (decreasing by N), or "+" (increasing by N).

digits, nsmall

Number of decimal places of output. Default is 1.

file

File name of MS Word (.doc).

Value

A data frame of frequency statistics.

Examples

data=psych::bfi
Freq(data$education)
Freq(data$gender, label=c("Male", "Female"))
Freq(data$age)


[Package bruceR version 0.8.0 Index]