add_labels: Apply labels to multiple variables on a data frame

View source: R/labels.R

add_labelsR Documentation

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, ...)

Arguments

data

A data.frame or tibble

...

Named parameters in the form of variable = 'label'

Value

data with variable labels applied

Examples

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


metatools documentation built on March 31, 2023, 5:19 p.m.