R/cohes.R

Defines functions cohes

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

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

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.