powered by
Expands a square matrix by repeating each row/column the specified number of times.
expandMat(mat, nn)
Sum of squared deviations from the mean using only valid (non NA) values.
A square matrix to be exapanded
A vector of number of times each row/column must be repeated. Its length must match the number of rows/columns
Aleš Žiberna