Learn R Programming

statuser (version 0.1.9)

validate_table2: 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)

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)

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.