Format your data for use with panelr.

panel_data(data, id = id, wave = wave, ...)

Arguments

data

A data frame.

id

The name of the column (unquoted) that identifies participants/entities. A new column will be created called id, overwriting any column that already has that name.

wave

The name of the column (unquoted) that identifies waves or periods. A new column will be created called wave, overwriting any column that already has that name.

...

Attributes for adding onto this method. See tibble::new_tibble() for a run-through of the logic.

Value

A panel_data object.

Examples

data("WageData") wages <- panel_data(WageData, id = id, wave = t)