add_paras {tidyindex} | R Documentation |
Add parameters to an index table object
Description
The function joins the parameter table to the 'paras' element of an index table object.
Usage
add_paras(data, para_tbl, by)
Arguments
data |
a |
para_tbl |
a tibble or data frame object with parameter of variables |
by |
a single column name (support tidyselect) in the 'para_tbl' that maps to the variable name in the data |
Value
an index object
Examples
init(gggi) |> add_paras(gggi_weights, by = "variable")
[Package tidyindex version 0.1.0 Index]