apaMatrix.Repeat.Cols(Matrix, n)
Excel
=apaMatrix.Repeat.Cols(Matrix, n)Result
Repeats a matrix n times in the horizontal direction.
Syntax
Matrix: nRows x nCols matrix of data
n: integer number of repetitions
Related functions
apaMatrix.AdjugateReturns the adjugate matrix of a matrix.apaMatrix.Averages.CategoriesReturns the equally-weighted arithmetic category means of a data matrix.apaMatrix.Averages.Categories.WeightedReturns the weighted arithmetic category means of a data matrix.apaMatrix.Averages.ColsReturns the column averages of a matrix.apaMatrix.Averages.Diagonal.MajorReturns the averages of all major diagonals of a matrix.apaMatrix.Averages.Diagonal.MinorReturns the averages of all minor diagonals of a matrix.apaMatrix.Averages.RowsReturns the row averages of a matrix.apaMatrix.Center.ColsCenters the columns of a matrix such that their means are zero.apaMatrix.Center.DoubleCenters the rows and columns of a matrix such that both their means are zero.apaMatrix.Center.RowsCenters the rows of a matrix such that their means are zero.apaMatrix.CenteringCreates the n x n centering matrix H = I − (1/n)*1*1', with n = Size.apaMatrix.ChangeSign.OffDiagonal.MajorChanges the sign of the entries off the main diagonal of a matrix.apaMatrix.ChangeSign.Diagonal.MajorChanges the sign of the entries on the main diagonal of a matrix.apaMatrix.CholeskyReturns the Cholesky decomposition of a symmetric positive definite matrix.apaMatrix.CofactorsReturns the matrix of all cofactors of a matrix.apaMatrix.Concatenate.ColsStacks two matrices in the horizontal direction.apaMatrix.Concatenate.RowsStacks two matrices in the vertical direction.apaMatrix.ConditionNumberReturns the condition number of a matrix.apaMatrix.Cumsum.ColsReturns the running cumulative sums by columns.apaMatrix.Cumsum.RowsReturns the running cumulative sums by rows.apaMatrix.Diagonal.Minor.GetReturns a vector containing the elements on the minor diagonal of a matrix.apaMatrix.Diagonal.Minor.Nth.GetReturns a vector containing the elements on the n-th minor diagonal of a matrix.apaMatrix.Diagonal.Minor.PutReturns a square matrix of zeros with the elements of a vector on the minor diagonal.apaMatrix.Diagonal.Major.GetReturns a vector containing the elements on the major diagonal of a matrix.apaMatrix.Diagonal.Major.Nth.GetReturns a vector containing the elements on the n-th major diagonal of a matrix.apaMatrix.Diff.ColsReturns the column-wise n-th differences of a data matrix.apaMatrix.DifferenceGenerates the (first) difference matrix.apaMatrix.Diagonal.Major.PutReturns a square matrix of zeros with the elements of a vector on the major diagonal.apaMatrix.Diagonal.Major.Put.OnesSets all entries on the main diagonal of a matrix to one.apaMatrix.Drop.ColsRemoves columns of a matrix, given a vector of column indicators.apaMatrix.Drop.Cols.ByIndexRemoves columns of a matrix, given a vector of column indices.apaMatrix.Drop.RowsRemoves rows of a matrix, given a vector of row indicators.apaMatrix.Drop.Rows.ByIndexRemoves rows of a matrix, given a vector of row indices.apaMatrix.Flip.ColsReverses the order of the elements of a matrix in the horizontal direction.apaMatrix.Flip.RowsReverses the order of the elements of a matrix in the vertical direction.apaMatrix.FromVecPuts the elements of a vec vector into a square matrix.apaMatrix.FromVechPuts the elements of a vech vector, i.e. the lower triangular part including the main diagonal, into a square matrix.apaMatrix.FromVeclTurns a vecl vector, i.e. the lower vectorization of a square matrix excluding the main diagonal, into a matrix.apaMatrix.HankelBuilds a Hankel matrix from a data vector.apaMatrix.IdentityCreates an n x n identity matrix, i.e. a square matrix with ones on the main diagonal and zeros otherwise.
