label: Attach labels to data and variables

Description Usage Arguments Details Value Author(s) Examples

View source: R/mStats.R

Description

label() manipulates labels

Usage

1

Arguments

data

data.frame

...

For variable label, Var = "Var Label": For data label, "Example data lable".

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

mStats documentation built on Nov. 23, 2020, 9:07 a.m.

Related to label in mStats...