rdiscr               package:Geneland               R Documentation

_I_n_t_e_r_n_a_l _f_u_n_c_t_i_o_n _f_o_r _t_h_e _s_i_m_u_l_a_t_i_o_n _o_f _a _c_a_t_e_g_o_r_i_c_a_l _r_a_n_d_o_m _v_a_r_i_a_b_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     Simulation one value from categorical distribution

_U_s_a_g_e:

     rdiscr(f)

_A_r_g_u_m_e_n_t_s:

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

_D_e_t_a_i_l_s:

_V_a_l_u_e:

     An integer drawn from the categorical distribution

