R/InternalFunction.R

Defines functions get_lower_tri_noDiag

Documented in get_lower_tri_noDiag

#' get_lower_tri_noDiag
#' @description
#' create a lower triangle of the matrix without the diagonal
#'
#'
#' @param cormat matrix
#' @keywords internal
#'
get_lower_tri_noDiag <- function(cormat){
  cormat[upper.tri(cormat)] <- NA
  diag(cormat) <- NA
  return(cormat)
}

Try the INetTool package in your browser

Any scripts or data that you put into this service are public.

INetTool documentation built on March 20, 2026, 1:07 a.m.