Expands a square matrix by repeating each row/column the specified number of times.
UTF-8
expandMat(mat, nn)
mat
: A square matrix to be exapandednn
: A vector of number of times each row/column must be repeated. Its length must match the number of rows/columnsSum of squared deviations from the mean using only valid (non NA) values.
Useful links