splitAt: Split by index

View source: R/misc_functions.R

splitAtR Documentation

Split by index

Description

Similar to split() but takes a vector of indexes instead of a group vector. From SO: https://stackoverflow.com/a/19274414/1498656

Usage

splitAt(x, pos, trim_ends = FALSE)

Arguments

x

input vector

pos

index vector

trim_ends

exclude first and last group


JohannesNE/waveformtools documentation built on July 1, 2022, 8:48 p.m.