Extract column labels as defined in SAS

colLabels(x, sort = "alpha", as.fun)

Arguments

x

object with elements containing label attributes.

sort

If sort="alpha", results are sorted alphabetically.

as.fun

The default is to return data as a data.frame. Pass a function in as.fun to convert to something else. If data.tables are wanted, use `as.fun="data.table"`. The default can be configured using `NMdataConf()`.

Value

A data.frame with variable and their labels

See also

compareCols NMinfo