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)"))

sophisthse documentation built on May 29, 2017, 10:10 p.m.

Search within the sophisthse package
Search all R packages, documentation and source code