assign_label {metalite}R Documentation

A function to assign labels to a data frame

Description

A function to assign labels to a data frame

Usage

assign_label(data, var = names(data), label = names(data))

Arguments

data

A data frame.

var

The variables to assign labels.

label

The labels to be assigned.

Details

Value

A data frame with labels updated.

Examples

assign_label(r2rtf::r2rtf_adae) |> head()
assign_label(
  r2rtf::r2rtf_adae,
  var = "USUBJID",
  label = "Unique subject identifier"
) |> head()

[Package metalite version 0.1.3 Index]