sample.default: Default call to base R 'sample' function

View source: R/sample.R

sample.defaultR Documentation

Default call to base R sample function

Description

Default call to base R sample function

Usage

## Default S3 method:
sample(x, size, replace = FALSE, prob = NULL, ...)

Arguments

x

either a vector of one or more elements from which to choose, or a positive integer.

size

a non-negative integer giving the number of items to choose.

replace

should sampling be with replacement?

prob

a vector of probability weights for obtaining the elements of the vector being sampled.

...

any other arguments. Not used.

See Also

sample


jmcurran/rbayesfst documentation built on June 4, 2022, 9:57 a.m.