dfRowsToList {ParamHelpers} | R Documentation |
Convert a data.frame row to list of parameter-value-lists.
Description
Please note that (naturally) the columns of df
have to be of
the correct type w.r.t. the corresponding parameter. The only exception are
integer parameters where the corresponding columns in df
are allowed to be
numerics. And also see the argument enforce.col.types
as a way around this
restriction.
numeric(vector) | numeric |
integer(vector) | integer |
discrete(vector) | factor (names of values = levels) |
logical(vector) | logical
|
Dependent parameters whose requirements are not satisfied are represented by a scalar NA in the output.
Usage
dfRowsToList(df, par.set, enforce.col.types = FALSE, ...)
dfRowToList(df, par.set, i, enforce.col.types = FALSE, ...)
Arguments
df |
( |
par.set |
ParamSet |
enforce.col.types |
( |
... |
(any) |
i |
( |
Value
list
. Named by parameter ids.