Learn R Programming

tidyindex (version 0.1.0)

add_paras: 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)

Value

an index object

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

Examples

Run this code
init(gggi) |> add_paras(gggi_weights, by = "variable")

Run the code above in your browser using DataLab