pre_recoded_df = tibble::tibble(x1 = 1:5, x2 = 5:1)
recoded_df = recode_item(pre_recoded_df, cols = dplyr::contains('x'),
code_from = 1:5,
code_to = 5:1)
Run the code above in your browser using DataLab