Learn R Programming

salty (version 0.1.1)

p_indices: Sample a proportion of indices of a vector

Description

Sample a proportion of indices of a vector

Usage

p_indices(x, p)

Value

An integer vector of indices.

Arguments

x

A vector

p

A numeric probability between 0 and 1