prop.split: Function to split data

Description Usage Arguments Value

Description

Split N points in proportions given by p

Usage

1
prop.split(N, p)

Arguments

N

number of points

p

vector of proportions. Must sum 1.

Value

A list of length(p) vectors, with sample indexes from 1 to N.


jlaria/dsclass documentation built on May 5, 2019, 7:09 a.m.