addpoints: Add a given number of patches to a landscape

addpointsR Documentation

Add a given number of patches to a landscape

Description

Adds a given number of patches to the landscape.

Usage

addpoints(rl, nr)

Arguments

rl

Object of class 'landscape'.

nr

Number of patches to be added (see 'note').

Value

Returns an object of class 'landscape'.

Note

The number of patches to be added might be impaired by the minimum distance between points.

Author(s)

Frederico Mestre and Fernando Canovas

See Also

rland.graph, removepoints

Examples


data(rland)

#Checking the number of patches in the starting landscape:

rland$number.patches

#60

#Adding 10 patches to a landscape:

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

#Checking the number of patches in the output landscape:

rl1$number.patches

#70


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