split_blocks-methods: Cut a vector-valued object into a list of sub-blocks

split_blocksR Documentation

Cut a vector-valued object into a list of sub-blocks

Description

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 signature 'NeuroVec,integer'
split_blocks(x, indices, ...)

## S4 method for signature '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


bbuchsbaum/neuroim2 documentation built on April 20, 2024, 4:20 p.m.