Freq: Frequency statistics (to R Console or MS Word).

Description Usage Arguments Value Examples

View source: R/bruceR_stats_01_basic.R

Description

Frequency statistics (to R Console or MS Word).

Usage

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

Arguments

var

Vector or variable.

label

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

sort

"" (default, sorted by raw order), "-" (decreasing), or "+" (increasing).

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

1
2
3
Freq(bfi$education)
Freq(bfi$gender, label=c("Male", "Female"))
Freq(bfi$age)

bruceR documentation built on June 22, 2021, 1:06 a.m.