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 Jan. 20, 2026, 5:07 p.m.