Learn R Programming

metatools (version 0.1.6)

add_labels: Apply labels to multiple variables on a data frame

Description

This function allows a user to apply several labels to a dataframe at once.

Usage

add_labels(data, ...)

Value

data with variable labels applied

Arguments

data

A data.frame or tibble

...

Named parameters in the form of variable = 'label'

Examples

Run this code
add_labels(
    mtcars,
    mpg = "Miles Per Gallon",
    cyl = "Cylinders"
  )

Run the code above in your browser using DataLab