Learn R Programming

sampling (version 0.1)

srswr: Simple random sampling with replacement

Description

Draw a simple random sampling with replacement of size n.

Usage

srswr(n,N)

Arguments

n
sample size.
N
population size.

Details

Return a vector (0 and 1) of size N which is the population size.

See Also

rmultinom, UPmultinomial

Examples

Run this code
srswr(3,10)

Run the code above in your browser using DataLab