validate_table2: Validate Inputs for table2() Function

View source: R/validate.R

validate_table2R Documentation

Validate Inputs for table2() Function

Description

Validates inputs for table2() function that accepts multiple variables via ... with optional data frame.

Usage

validate_table2(..., data = NULL, func_name = "table2", data_name = NULL)

Arguments

...

One or more variables to be tabulated.

data

An optional data frame containing the variables.

func_name

Character string. Name of the calling function (for error messages). Default is "table2".

data_name

Character string. Name of the data argument (for error messages). If NULL, will attempt to infer from the call.

Value

A list containing:

  • dots: List of evaluated variables (ready for base::table)

  • dot_expressions: List of expressions (for variable name extraction)

  • data_name: Name of data argument (for error messages)


statuser documentation built on April 25, 2026, 5:06 p.m.