balance_panel: Balance a panel

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

A function that balances a panel

Usage

1
balance_panel(tbl, id_var = id, t_var = year)

Arguments

tbl

A tbl of panel data

id_var

The (quoted or unquoted) name of the id variable

t_var

The (quoted or unquoted) name of the time variable

Value

A tbl of the balanced panel

Examples

1
2
asm <- fakedata::fake_panel(N = 50, T = 10, missing = 0.1)
balance_panel(asm)

tweed1e/idiosyncratics documentation built on May 29, 2019, 10:51 a.m.