add_paras: Add parameters to an index table object

View source: R/init.R

add_parasR 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 idx_tbl object

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")

tidyindex documentation built on Nov. 16, 2023, 5:08 p.m.