Skip to contents

Set variable labels using labelled::set_variable_labels

Usage

label_variables(df, table_name)

Arguments

df

Data frame

table_name

String with table name

Value

Data frame with labeled variables

Examples

library(labelled)

label_variables(
  df = df_21311LJ001,
  table_name = "21311LJ001"
)
#> # A tibble: 31 × 6
#>    DLAND                    SEMEST     BIL002 BIL040 BIL045 BIL046
#>    <chr+lbl>                <chr>       <dbl>  <dbl>  <dbl>  <dbl>
#>  1 05 [Nordrhein-Westfalen] WS 1992/93 499370  35273  11718   5470
#>  2 05 [Nordrhein-Westfalen] WS 1993/94 503936  38104  12253   6006
#>  3 05 [Nordrhein-Westfalen] WS 1994/95 508998  40707  12820   6494
#>  4 05 [Nordrhein-Westfalen] WS 1995/96 505904  42465  13464   6556
#>  5 05 [Nordrhein-Westfalen] WS 1996/97 505772  44467  14482   6348
#>  6 05 [Nordrhein-Westfalen] WS 1997/98 502867  46090  14178   6002
#>  7 05 [Nordrhein-Westfalen] WS 1998/99 501137  48396  14541   5967
#>  8 05 [Nordrhein-Westfalen] WS 1999/00 492772  49844  13738   5856
#>  9 05 [Nordrhein-Westfalen] WS 2000/01 492701  52404  13584   5861
#> 10 05 [Nordrhein-Westfalen] WS 2001/02 504687  56443  12580   5536
#> # ℹ 21 more rows