Learn R Programming

MetaLandSim (version 0.2)

removepoints: Remove a given number of patches from the landscape

Description

Randomly removes a given number of patches from the landscape.

Usage

removepoints(rl, nr)

Arguments

rl
Object of class 'landscape'.
nr
Number of patches to remove.

Value

  • Returns an object of class 'landscape'.

See Also

rland.graph, addpoints

Examples

Run this code
data(rland)

#Checking the number of patches in the starting landscape:

rland$number.patches

#60

#Removing 10 patches from the landscape:

rl1 <- removepoints(rl=rland, nr=10)

#Checking the number of patches in the output landscape:

rl1$number.patches

#50

Run the code above in your browser using DataLab