clear_labels: Removes Hmisc labels from a dataframe

Description Usage Arguments Examples

View source: R/clear_labels.R

Description

Some functions do not work when variables in a data.frame are having the "Labelled" class appended to them. This removes labels from a dataframe.

Usage

1

Arguments

x

A data.frame.

Examples

1
2
3
4
5
6
7
8
library(Hmisc)
getHdata(plasma)
#Look-up labels:
label(plasma)

#Remove labels:
clean_plasma <- clear_labels(plasma)
label(clean_plasma)

dlindholm/doctoR documentation built on May 13, 2017, 3:32 a.m.