Learn R Programming

distr6 (version 1.5.2)

as.ParameterSet: Coerce to a ParameterSet

Description

Coerces objects to ParameterSet.

Usage

as.ParameterSet(x,...)

# S3 method for data.table as.ParameterSet(x, ...)

# S3 method for list as.ParameterSet(x, ...)

Arguments

x

object

...

additional arguments

Value

An R6 object of class ParameterSet.

Details

Currently supported coercions are from data tables and lists. Function assumes that the data table columns are the correct inputs to a ParameterSet, see the constructor for details. Similarly for lists, names are taken to be ParameterSet parameters and values taken to be arguments.

See Also

ParameterSet