set_variable_labels: Set variable labels of a data.frame

Description Usage Arguments Details Value Examples

View source: R/sophisthse.R

Description

Set variable labels of a data.frame

Usage

1

Arguments

df

data.frame

labels

character vector of variable names

Details

Set variable labels of a data.frame. They will be nicely visible with 'View()' in Rstudio.

Value

data.frame with labelled variables

Examples

1
2
cars2 <- set_variable_labels(cars,
  labels = c("Speed (mph)", "Stopping distance (ft)"))

bdemeshev/sophisthse documentation built on Sept. 3, 2021, 8:27 p.m.