Learn R Programming

saros (version 1.6.1)

normalize_makeme_arguments: Normalize Multi-Choice Arguments to Single Values

Description

Internal helper function that ensures makeme arguments that might be vectors are normalized to single values by taking the first element.

Usage

normalize_makeme_arguments(args, data = NULL)

Value

Modified args list with normalized single-value arguments:

  • showNA: First element of showNA vector

  • data_label: First element of data_label vector

  • data_label_position: First element of data_label_position vector

  • type: Auto-detected type if "auto", otherwise first element of evaluated type expression

Arguments

args

List of makeme function arguments

data

Data frame being analyzed (needed for auto type detection)