Learn R Programming

sampling (version 0.1)

writesample: All possible samples of fixed size

Description

Give a matrix which contains in its rows the vectors (0 or 1) of all the samples of fixed size.

Usage

writesample(n,N)

Arguments

n
sample size.
N
population size.

See Also

landingcube

Examples

Run this code
# matrix with the samples of size 4
# from a population of size 10.
writesample(4,10)

Run the code above in your browser using DataLab