removepoints {MetaLandSim}R Documentation

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'.

Author(s)

Frederico Mestre and Fernando Canovas

See Also

rland.graph, addpoints

Examples


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


[Package MetaLandSim version 2.0.0 Index]