inspect: Inspect a Variable in a Data Frame

inspectR Documentation

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

Author(s)

Dave Armstrong

Examples


data(france)
inspect(france, "vote")


davidaarmstrong/damisc documentation built on Oct. 1, 2023, 3:05 p.m.