Learn R Programming

diagonals (version 0.3.0)

split_vector: Split Vector

Description

Split Vector

Usage

split_vector(x, steps = NULL, size = NULL, replacement = 0)

Arguments

x
a numeric or character vector
steps
the number of steps
size
the size of the step
replacement
value to be inserted on the diagonal, by default this is zero (0).

Details

Either steps or size is expected to be provided.