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 Nov. 29, 2025, 1:06 a.m.