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 Jan. 11, 2025, 1:25 a.m.