Learn R Programming

litteR (version 1.0.0)

recdf: Sample From an ECDF

Description

Type stable implementation of an Empirical Cumulative Distribution Function (ECDF) sampler.

Usage

recdf(x, n)

Value

vector of n elements of the same type as x

Arguments

x

numeric vector

n

number of draws

See Also

Examples

Run this code
recdf(1:5, 10)

Run the code above in your browser using DataLab