Learn R Programming

gallery (version 1.0.0)

cycol: Create matrix A whose columns repeat cyclically

Description

Returns an n-by-n matrix with cyclically repeating columns where one cycle consists of the columns defined by randn(n,k). Thus, the rank of matrix A cannot exceed k, and k must be scalar.

Usage

cycol(n, k, m = NULL)

Value

Matrix whose columns repeat cyclically

Arguments

n

number of columns of matrix

k

upper limit of rank

m

number of rows of matrix