label {mStats} | R Documentation |
Attach labels to data and variables
Description
label()
manipulates labels
Usage
label(data, ...)
Arguments
data |
data.frame |
... |
For variable label, |
Details
Attach labels
It has two inputs. If only one label is specified, that
label is attached to the data. Otherwise, the pattern
Var = "Var Label"
are used to attach labels to variables.
Remove labels
NA
or NULL
is used to remove labels.
Value
data.frame
Author(s)
Email: dr.myominnoo@gmail.com
Website: https://myominnoo.github.io/
Examples
## Variable label
x <- label(infert,
education = "Education levels",
age = "Age in years of case",
parity = "count",
stratum = "1-83",
pooled.stratum = "1-63")
## Data label
x <- label(x, "Infertility and Abortion Dataset")
codebook(x)
[Package mStats version 3.4.0 Index]