Learn R Programming

MetaLandSim (version 2.0.0)

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)

Value

Returns an object of class 'landscape'.

Arguments

rl

Object of class 'landscape'.

nr

Number of patches to remove.

Author

Frederico Mestre and Fernando Canovas

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