blockmat.numeric: Block matrix

Description Usage Arguments Value

View source: R/blockmat.R

Description

converts a vector of block assignments to a matrix of block assignments

Usage

1
2
3
4
5
## S3 method for class 'numeric'
blockmat(x, kappa)

## S3 method for class 'factor'
blockmat(x, kappa)

Arguments

x

a numeric-vector of node-to-block assignments

kappa

number of blocks

Value

matrix with kappa rows and a 1 at (k,i) if node i is in block k under x


SBMSplitMerge documentation built on July 1, 2020, 5:23 p.m.