expandMat: Expands a square matrix by repeating each row/column the...

View source: R/expandMat.R

expandMatR Documentation

Expands a square matrix by repeating each row/column the specified number of times.

Description

Expands a square matrix by repeating each row/column the specified number of times.

Usage

expandMat(mat, nn)

Arguments

mat

A square matrix to be exapanded

nn

A vector of number of times each row/column must be repeated. Its length must match the number of rows/columns

Value

Sum of squared deviations from the mean using only valid (non NA) values.

Author(s)

Aleš Žiberna


blockmodeling documentation built on Aug. 23, 2023, 5:07 p.m.