return_sub_indices: Return sub indices

Description Usage Arguments Examples

View source: R/functions-register-measurementdata.R

Description

Split a vector 1:bigN into list of vectors each of length < len_subelem

Usage

1
return_sub_indices(bigN, len_subelem)

Arguments

bigN

c(1: bigN) is the vector that needs to be split

len_subelem

The maxiumum length of one of the split vectors

Examples

1
2
3
4
5
6
7
8
9
return_sub_indices(bigN = 10, len_subelem = 4)
## [[1]]
## [1] 1 2 3 4
##
## [[2]]
## [1] 5 6 7 8
##
## [[3]]
## [1]  9 10

Paradigm4/revealgenomics documentation built on April 7, 2020, 2:01 a.m.