validate_cost_data: Validate and prepare cost data

View source: R/utils.R

validate_cost_dataR Documentation

Validate and prepare cost data

Description

Internal helper that ensures a numeric, non-empty cost matrix.

Usage

validate_cost_data(x, forbidden = NA)

Arguments

x

Cost matrix or data frame

forbidden

Value representing forbidden assignments (use NA or Inf)

Value

Numeric cost matrix


couplr documentation built on Sept. 17, 2026, 1:08 a.m.