p_indices: Sample a proportion of indices of a vector

Description Usage Arguments Value

Description

Sample a proportion of indices of a vector

Usage

1
p_indices(x, p)

Arguments

x

A vector

p

A numeric probability between 0 and 1

Value

An integer vector of indices.


salty documentation built on May 2, 2019, 9:33 a.m.