sorted_sample_int: Draw sorted sample of integers.

Description Usage Arguments Value Author(s) Examples

Description

Draw a sorted sample of integers.

Usage

1
sorted_sample_int(n, size, replace = FALSE, prob = NULL)

Arguments

n

a positive number, the number of items to choose from. See ‘Details.’

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.

Value

A vector of length size with an increasingly sorted sample of integers between 1 and n.

Author(s)

Dominik Mueller

Examples

1

DominikMueller64/dmisc documentation built on May 6, 2019, 2:52 p.m.