Freq {bruceR}R Documentation

Frequency statistics (to R Console or MS Word).

Description

Frequency statistics (to R Console or MS Word).

Usage

Freq(var, label = NULL, sort = "", nsmall = 1, 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).

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

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


[Package bruceR version 0.7.0 Index]