mutaters: mutaters

Description Public fields Methods Examples

Description

R6 class for handling the various mutaters

Public fields

muts

(list) list of mutaters

Methods

Public 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
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

## End(Not run)

ropensci/mutant documentation built on Dec. 30, 2021, 11:53 a.m.