p_indices: Sample a proportion of indices of a vector

View source: R/utils.R

p_indicesR 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.


salty documentation built on Sept. 11, 2024, 5:28 p.m.