Skip to contents

Splits a vector-valued object into a list of sub-blocks defined by a vector of indices.

Usage

split_blocks(x, indices, ...)

# S4 method for NeuroVec,integer
split_blocks(x, indices, ...)

# S4 method for NeuroVec,factor
split_blocks(x, indices, ...)

Arguments

x

a vector-valued object

indices

a vector of indices defining the sub-blocks. Must match the length of the input vector.

...

additional arguments