grepColFactors {rrMisc}R Documentation

Get column names of data.frame with factors

Description

Of a data.frame, get the attributes with class 'factor' and 'ordered factor'.

Usage

grepColFactors(x)

Arguments

x

data.frame

Details

Factor variables are returned and indicated if also defined as 'ordered'.

Value

grepColFactors() returns variables are returned and indicated if also defined as 'ordered'.

Note

under continuous developement

Author(s)

Roland Rapold

References

none

See Also

grepColEntries grepColNames grepColNA grepObjNames grepNotCompleteEntries grepMultipleEntries grepRowNames grepColNegNum

Examples

if(require("car"))
{
  data(Mroz, package="car")
  Mroz$wc_ord <- as.ordered(Mroz$wc)
  print(grepColFactors(Mroz))
}

[Package rrMisc version 0.31 Index]