Learn R Programming

MetaLandSim (version 0.2)

extract.graph: Extract landscape from span.graph generated list

Description

Extracts a landscape from an object delivered by span.graph. The output is an object of class 'landscape'.

Usage

extract.graph(rl, rlist, nr)

Arguments

rl
Object of class 'landscape' used to generate the list, with span.graph.
rlist
Object delivered by span.graph.
nr
Position of the landscape in the list (rlist).

Value

  • Delivers an object of class 'landscape'.

See Also

span.graph, rland.graph

Examples

Run this code
data(rland)
data(landscape_change)

#Extracting the landscape of the 50th time step:

rl1 <- extract.graph(rl=rland, rlist=landscape_change, nr=50)

Run the code above in your browser using DataLab