Skip to content

Instantly share code, notes, and snippets.

@Ram-N
Created March 11, 2013 18:54
Show Gist options
  • Save Ram-N/5136633 to your computer and use it in GitHub Desktop.
Save Ram-N/5136633 to your computer and use it in GitHub Desktop.
# Genotype AA = 1, Aa = 2 and aa = 3
# Gamete A =1 and a = 0
#Uniformly distribute AA, Aa and aa
start.pop <- sample(1:3, kStartPop, replace=TRUE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment