get_weights_prop: Get weight data from 'generation' output.

View source: R/fun_weight_evo.R

get_weights_propR Documentation

Get weight data from generation output.

Description

A function to return scaled weight proportion data from weight values returned by the generation function. Returns a data.table with columns weight_id, weight_value (-1 – +1), and weight_prop.

Usage

get_weights_prop(gen_data, digits = 2)

Arguments

gen_data

A list object produced by generation().

digits

Rounding digits when scaling preferences.

Value

Returns a data.table with columns weight_id, weight_value (-1 – +1), and weight_prop.


pratikunterwegs/klepto-move-evol documentation built on March 20, 2023, 3:35 p.m.