powered by
Sampler for non-dist objects (degenerate distributions).
# S3 method for default sampler(x, ...)
A function that takes n and returns n copies of x
The object to sample from
Additional arguments to pass
s <- sampler(5) s(3) # returns c(5, 5, 5)
Run the code above in your browser using DataLab