clear_labels: Removes Hmisc labels from a dataframe

Description Usage Arguments Examples

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 15, 2019, 9:18 a.m.