Learn R Programming

ALLSPICER (version 0.1.9)

get_single_geno: get_single_geno

Description

simulation function: simulate genotype information for one locus, where `cnt` samples out of `n_ind` has the mutation

Usage

get_single_geno(cnt, n_ind)

Value

A binary vector representing the genotype information of `n_ind` individuals for a particular locus, where `cnt` entries has value 1.

Arguments

cnt

number of individuals with the mutation

n_ind

total number of individuals

Examples

Run this code
geno <- get_single_geno(cnt = 100, n_ind = 10000)

Run the code above in your browser using DataLab