R/trans.R

#' Transitivity blockmodel
#'
#' @description Transitivity blockmodel.
#' @param nbl Number of clusters.
#' @author Marjan Cugmas
#' @export

trans <- function (nbl){
  B.trans <- array(NA, dim = c(1, 1, nbl, nbl))
  B.trans[1, 1, , ] <- matrix("null", nrow = nbl, ncol = nbl)
  B.trans[1, 1, , ][lower.tri(B.trans[1, 1, , ])] <- "com"
  return(B.trans)
}

Try the nem package in your browser

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

nem documentation built on April 23, 2021, 3 p.m.