Learn R Programming

topolow (version 1.0.0)

process_distance_matrix: Process distance matrix for convergence error calculations

Description

Helper function that processes elements of the distance matrix for calculating convergence error. Handles threshold indicators and NA values.

Usage

process_distance_matrix(reported_distance, distance)

Value

Numeric or NA. Returns processed distance if valid, NA otherwise

Arguments

reported_distance

Character or numeric. The reported distance value

distance

Numeric. The calculated distance to compare against