check_data: Ensure input data set has required fields and data types are...

View source: R/utils_check_data.R

check_dataR Documentation

Ensure input data set has required fields and data types are correct

Description

Check to ensure all the required column are present and data types are correct. This function binds all the checks through helper functions.

Usage

check_data(.data, cols, state_column_name)

Arguments

.data

A data frame containing the input parameters for the TAXSIM 35 program. The column names of the input parameters are below. The column can be in any order.

cols

The column names, as a string, in the data set .data

state_column_name

The column name of the state column.

Value

The function does not return a value. It either produces a stop message with the error or prints that all checks were successful.


usincometaxes documentation built on May 29, 2024, 10:22 a.m.