Extract attributes saved for individuums in a
log object to a more accessible matrix or data.frame.
popAggregate(log, extract, simplify = TRUE, data.frame = FALSE)
Arguments
| log |
[ecr_logger] ecr log object.
|
| extract |
[character] names of attributes to extract, currently
"names", "fitness", "runtime", "fitness.holdout" and "fidelity" (if used) are supported.
|
| simplify |
[logical(1)] whether to create a
matrix/data.frame for each generation (default).
Otherwise a list is returned for each generation containing
the value (if length(extract) == 1) or a named list of values.
|
| data.frame |
[logical(1)] whether to return a data.frame
with rows for each individuum (if TRUE) or to return a matrix
with columns for each individuum compatible as fitness matrix
with various ecr tools (if FALSE, default). Only effective if
simplify is TRUE.
|
Value
[matrix] if simplify is TRUE, [list] otherwise.