Learn R Programming

sjmisc (version 1.2)

remove_labels: Remove value and variable labels from vector or data frame

Description

This function removes value and variable label attributes from a vector or data frame. These attributes are typically added to variables when importing foreign data (see read_spss) or manually adding label attributes with set_labels.

Usage

remove_labels(x)

Arguments

x
Vector or data.frame with variable and/or value label attributes

Value

  • x with removed value and variable label attributes.

See Also

http://www.strengejacke.de/sjPlot/labelleddata/{sjPlot-manual} on working with labelled data, and copy_labels for adding label attributes (subsetted) data frames.

Examples

Run this code
data(efc)
str(efc)
str(remove_labels(efc))

Run the code above in your browser using DataLab