split_vector: Split Vector
Usage
split_vector(x, steps = NULL, size = NULL, replacement = 0)
Arguments
x
a numeric or character vector
replacement
value to be inserted on the diagonal, by default this is
zero (0).
Details
Either steps or size is expected to be provided.