split_vector {diagonals} | R Documentation |
Split Vector
split_vector(x, steps = NULL, size = NULL, replacement = 0)
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). |
Either steps or size is expected to be provided.