populations {rmetasim} | R Documentation |
return a vector of population IDs from a landscape
populations(Rland)
Rland |
the Rmetasim landscape object |
Returns a vector of length dim(rland$individuals)[1]
where rland is a
landscape object. The vector classifies individuals into populations
(or habitats)
a vector
locus
exampleland <- new.example.landscape() exampleland <- simulate.landscape(exampleland, 4) hist(populations(exampleland),main="Distribution of population size in landscape") rm(exampleland)