Learn R Programming

blockmodeling (version 1.1.5)

expandMat: 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)

Value

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

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

Author

Aleš Žiberna