Learn R Programming

rmetasim (version 3.1.14)

landscape.populations: return a vector of population IDs from a landscape

Description

return a vector of population IDs from a landscape

Usage

landscape.populations(Rland)

Arguments

Rland

the Rmetasim landscape object

Value

a vector

Details

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

See Also

landscape.locus, landscape.ploidy

Examples

Run this code
# NOT RUN {
  exampleland <- landscape.new.example()
  exampleland <- landscape.simulate(exampleland, 4)
  plot(table(landscape.populations(exampleland)),
       main="Distribution of population size in landscape")
  rm(exampleland)
# }

Run the code above in your browser using DataLab