Learn R Programming

DAMisc (version 1.7.2)

inspect: Inspect a Variable in a Data Frame

Description

Shows the variable label, factor levels (i.e., value labels) and frequency distribution for the specified variable.

Usage

inspect(data, x, includeLabels = FALSE, ...)

Arguments

data

A data frame of class data.frame or tbl_df.

x

A string identifying the name of the variable to be inspected.

includeLabels

Logical indicating whether value labels should also be included.

...

Other arguments to be passed down, currently unimplemented.

Value

A list with a variable label (if present), factor levels/value labels (if present) and a frequency distribution

Examples

Run this code
# NOT RUN {
data(france)
inspect(france, "vote")

# }

Run the code above in your browser using DataLab