removepoints: Remove a given number of patches from the landscape

removepointsR 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


MetaLandSim documentation built on Jan. 13, 2023, 1:11 a.m.