check_results_names: Helper function to throw informative error when column names...

View source: R/utils.R

check_results_namesR Documentation

Helper function to throw informative error when column names are duplicated, in particular, when the same parameter is in the user-provided method results output and also in vary_across.

Description

Helper function to throw informative error when column names are duplicated, in particular, when the same parameter is in the user-provided method results output and also in vary_across.

Usage

check_results_names(names, method_name)

Arguments

names

Vector of column names to check for uniqueness

Value

Throws an error if duplicate names are found. Returns the original names otherwise.


Yu-Group/simChef documentation built on March 25, 2024, 3:22 a.m.