allocate: Allocate Vector Elements to Partiton Subsets

Description Usage Arguments Value

View source: R/utils.R

Description

Return a vector with the index of the subset which contains each x.

Usage

1

Arguments

x

The vector to be allocated.

partition

A matrix who's rows give the limits of each disjoint subset (1D).

Value

A vector of indexes for each x-element's subset.


dfcorbin/MABsim documentation built on April 26, 2020, 8:26 a.m.