This function is used internally to extract the upper triangle of a matrix. It replaces the lower triangle of the input matrix with NA, which is useful when working with symmetrical matrices such as distance or correlation matrices where only the upper triangle is needed.
dot-get_upper_tri.RdThis function is used internally to extract the upper triangle of a matrix.
It replaces the lower triangle of the input matrix with NA, which is useful
when working with symmetrical matrices such as distance or correlation matrices
where only the upper triangle is needed.