rdiscr {Geneland}R Documentation

Internal function for the simulation of a categorical random variable

Description

Simulation one value from categorical distribution

Usage

rdiscr(f)

Arguments

f Vector of frequencies (sum(f) should be equal to one

Details

Value

An integer drawn from the categorical distribution


[Package Contents]