Learn R Programming

sweidnumbr (version 1.5.0)

roin: Generate a vector of random oin

Description

A function that generates random oins (see as.pin). The generated oin is uniformely distributed over all possible oins.

Usage

roin(n)

Value

a vector of generated oins.

Arguments

n

number of observations. If length(n) > 1, the length is taken to be the number required.

Examples

Run this code
x <- roin(3)
oin_ctrl(x)
oin_group(x)

Run the code above in your browser using DataLab