list.factor: Return All Factor Variables

Description Usage Arguments Value Examples

View source: R/list.factor.R

Description

Return all factor variables in a dataframe or matrix

Usage

1

Arguments

x

a dataframe or matrix

levels

logical. TRUE to display levels for factor variable.

Value

factor variable names and levels

Examples

1
2
3
4
jh=data.frame(x=c(1,2,3,1),
    k=c(4,5,6,7),
    h=c('a','a','b','b'))
list.factor(jh)

fastStat documentation built on Jan. 13, 2021, 7:32 a.m.