p_indices {salty} | R Documentation |
Sample a proportion of indices of a vector
Description
Sample a proportion of indices of a vector
Usage
p_indices(x, p)
Arguments
x |
A vector |
p |
A numeric probability between 0 and 1 |
Value
An integer vector of indices.
[Package salty version 0.1.0 Index]