SRS: Simple Random Sampling

Description Usage Arguments Value Author(s) See Also Examples

View source: R/SRS.R

Description

Computes all possible samples from a given population using simple random sampling.

Usage

1
SRS(POPvalues, n)

Arguments

POPvalues

vector containing the poulation values.

n

the sample size.

Value

Returns a matrix containing the possible simple random samples of size n taken from a population POPvalues.

Author(s)

Alan T. Arnholt

See Also

Combinations

Examples

1
2
3
SRS(c(5,8,3),2)
    # The rows in the matrix list the values for the 3 possible
    # simple random samples of size 2 from the population of 5,8, and 3.

BSDA documentation built on May 19, 2017, 10:29 p.m.

Search within the BSDA package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.