populations {rmetasim}R Documentation

return a vector of population IDs from a landscape

Description

return a vector of population IDs from a landscape

Usage

  populations(Rland)

Arguments

Rland the Rmetasim landscape object

Details

Returns a vector of length dim(rland$individuals)[1] where rland is a landscape object. The vector classifies individuals into populations (or habitats)

Value

a vector

See Also

locus

Examples

  exampleland <- new.example.landscape()
  exampleland <- simulate.landscape(exampleland, 4)
  hist(populations(exampleland),main="Distribution of population size in landscape")
  rm(exampleland)

[Package Contents]