Learn R Programming

prettyR (version 1.1-3)

describe.factor: Description of factor variables

Description

Describes a factor variable.

Usage

describe.factor(x,varname="",vname.space=10,maxfac=10,show.pc=TRUE)

Arguments

x
A factor.
varname
A name for the variable. describe always passes the name.
vname.space
The width of the variable name display.
maxfac
The maximum number of factors to display.
show.pc
Whether to show the percentages for each level.

Value

  • nil

Details

describe.factor displays the name of the factor, a table of its values with up to maxfac entries, the modal value of the factor, the number of valid (not NA) values and the number of values not displayed if it contained more than maxfac levels.

See Also

Mode, valid.n, table