Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

MiscParameter-class

Miscellaneous parameter prototype


Description

This prototype is used to represent a parameter that can be any object. Only experts should interact directly with this prototype.

Fields

$id

character identifier for parameter.

$name

character name of parameter.

$value

tibble::tibble() object.

$validator

list object containing a function that is used to validate changes to the parameter.

Usage

x$print()

x$show()

x$validate(x)

x$get()

x$set(x)

x$reset()

Arguments

x

object used to set a new parameter value.

Details

print

print the object.

show

show the object.

validate

check if a proposed new parameter is valid.

get

extract the parameter value.

set

update the parameter value.

reset

update the parameter value to be the default value.

See Also


prioritizr

Systematic Conservation Prioritization in R

v7.0.1
GPL-3
Authors
Jeffrey O Hanson [aut] (<https://orcid.org/0000-0002-4716-6134>), Richard Schuster [aut, cre] (<https://orcid.org/0000-0003-3191-7869>), Nina Morrell [aut], Matthew Strimas-Mackey [aut] (<https://orcid.org/0000-0001-8929-7776>), Matthew E Watts [aut], Peter Arcese [aut] (<https://orcid.org/0000-0002-8097-482X>), Joseph Bennett [aut] (<https://orcid.org/0000-0002-3901-9513>), Hugh P Possingham [aut] (<https://orcid.org/0000-0001-7755-996X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.