landscape.locus | R Documentation |
return a matrix containing genotypes for a particular locus
landscape.locus(lnum=1,Rland)
lnum |
the locus to return |
Rland |
the Rmetasim landscape object |
Returns a matrix with rows = dim(rland$individuals)[1]
. The
first three columns correspond to the class (and two placeholder
variables) of an individual. Here rland is a
landscape object. The remaining columns (1 if haploid, 2 if
diploid) contain the allele indices for the various loci
matrix
landscape.populations
exampleland <- landscape.new.example() exampleland <- landscape.simulate(exampleland, 4) print("Allele frequencies at locus 1") table(landscape.locus(1,exampleland)[,c(-1:-(landscape.democol()))]) rm(exampleland)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.