Skip to contents

R6 class for handling the various mutaters

Public fields

muts

(list) list of mutaters

Methods


Method print()

print method for mutaters objects

Usage

mutaters$print(x, ...)

Arguments

x

self

...

ignored


Method new()

Create a new mutaters object

Usage

mutaters$new()

Returns

A new mutaters object


Method random()

randomly select a mutater

Usage

mutaters$random()


Method clone()

The objects of this class are cloneable with this method.

Usage

mutaters$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (FALSE) { # \dontrun{
x <- mutaters$new()
x
# select mutater by name
x$muts$bool_false2true
# fetch a random mutater
z <- x$random()
z
z$name
z$description
z$from
z$to
} # }