list_to_dt: convert validated list instructions into data frames to be...

View source: R/validation_utils.R

list_to_dtR Documentation

convert validated list instructions into data frames to be merged on

Description

convert validated list instructions into data frames to be merged on

Usage

list_to_dt(x, new_col, old_col)

Arguments

x

list. The expectation is that the list has previously been formatted/validated via validate_list_input

new_col

character. The name of the new column to be created given the reclassifications implied by x

old_col

character. The name of the old column implied from the reclassifications of x

Value

data.frame. For a given pair of old column and new column, return the recode mapping.


PHSKC-APDE/rads documentation built on April 14, 2025, 10:47 a.m.