split_index: Create a split index

View source: R/split_index.R

split_indexR Documentation

Create a split index

Description

This function creates an integer vector that can be used as a factor for grouping with 'split()'.

Usage

split_index(n, m)

Arguments

n

Number of elements of the vector.

m

Number of groups (or partitions).

Value

An integer vector.


maialab/daeqtlr documentation built on May 18, 2022, 6:53 a.m.