p_indices: Sample a proportion of indices of a vector

Description Usage Arguments Value

View source: R/utils.R

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.


mdlincoln/salty documentation built on May 20, 2019, 9:59 a.m.