Learn R Programming

prettyR (version 2.2-3)

describe.factor: Description of factor variables

Description

Describes a factor variable.

Usage

describe.factor(x,varname="",horizontal=FALSE,decr.order=TRUE)

Arguments

x

A factor.

varname

A name for the variable. describe always passes the name.

horizontal

Whether to display the results across the page (TRUE) or down the page (FALSE).

decr.order

Whether to order the rows by decreasing frequency.

Value

nil

Details

describe.factor displays the name of the factor, a table of its values, the modal value of the factor and the number of valid (not NA) values.

See Also

Mode, valid.n, table