expandMat function

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

UTF-8

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

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

Returns

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

Author(s)

  • Maintainer: Aleš Žiberna
  • License: GPL (>= 2)
  • Last published: 2023-08-23

Useful links