replace_true: Replace checkbox TRUEs with raw_or_label values

View source: R/combine_checkboxes.R

replace_trueR Documentation

Replace checkbox TRUEs with raw_or_label values

Description

Simple utility function for replacing checkbox field values.

Usage

replace_true(col, col_name, metadata, raw_or_label)

Arguments

col

A vector

col_name

A string

metadata

A metadata tibble from the original supertibble

raw_or_label

Either 'raw' or 'label' to specify whether to use raw coded values or labels for the options. Default 'label'.

Value

A character string


REDCapTidieR documentation built on April 3, 2025, 10:50 p.m.