Learn R Programming

couplr (version 1.0.10)

validate_cost_data: Validate and prepare cost data

Description

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

Usage

validate_cost_data(x, forbidden = NA)

Value

Numeric cost matrix

Arguments

x

Cost matrix or data frame

forbidden

Value representing forbidden assignments (use NA or Inf)