Learn R Programming

finalfit (version 1.0.8)

extract_variable_label: Extract variable labels from dataframe

Description

Variable labels can be created using ff_label. Some functions strip variable labels (variable attributes), e.g. forcats::fct_recode. Use this function to create a vector of variable labels from a data frame. Then use ff_relabel to relabel variables in data frame.

Usage

extract_variable_label(.data)

Arguments

.data

Dataframe containing labelled variables.

Examples

Run this code
colon_s %>%
  extract_variable_label

Run the code above in your browser using DataLab