Learn R Programming

l1kdeconv (version 1.2.0)

splitgrp: Split a list with size n into groups with at least m elements

Description

Split a list with size n into groups with at least m elements

Usage

splitgrp(n, m)

Arguments

n

an integer indicating the total length

m

the min group size

Examples

Run this code
# NOT RUN {
splitgrp(1, 2)
splitgrp(2, 2)
splitgrp(3, 2)
# }

Run the code above in your browser using DataLab