Learn R Programming

prioritizr (version 7.2.2)

Collection-class: Collection prototype

Description

This prototype represents a collection of ConservationModifier objects.

Fields

$...

ConservationModifier objects stored in the collection.

Usage

x$print()

x$show()

x$repr()

x$ids()

x$length()

x$add

x$remove(id)

x$get_parameter(id)

x$set_parameter(id, value)

Arguments

id

id object.

value

any object.

Details

print

print the object.

show

show the object.

repr

character representation of object.

ids

character ids for objects inside collection.

length

integer number of objects inside collection.

find

character id for object inside collection which contains the input id.

find_parameter

character id for object inside collection which contains the input character object as a parameter.

add

add ConservationModifier object.

remove

remove an item from the collection.

get_parameter

retrieve the value of a parameter in the object using an id object.

set_parameter

change the value of a parameter in the object to a new object.

See Also

Constraint, Penalty.