R/corepas.R

#' Asymmetric core-cohesive blockmodel
#'
#' @description Asymmetric core-cohesive blockmodel.
#' @param nbl Number of clusters.
#' @author Marjan Cugmas
#' @export

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

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.