panel_data {panelr} | R Documentation |
Create panel data frames
Description
Format your data for use with panelr.
Usage
panel_data(data, id = id, wave = wave, ...)
as_pdata.frame(data)
as_panel_data(data, ...)
## Default S3 method:
as_panel_data(data, id = id, wave = wave, ...)
## S3 method for class 'pdata.frame'
as_panel_data(data, ...)
as_panel(data, ...)
Arguments
data |
A data frame. |
id |
The name of the column (unquoted) that identifies
participants/entities. A new column will be created called |
wave |
The name of the column (unquoted) that identifies
waves or periods. A new column will be created called |
... |
Attributes for adding onto this method. See
|
Value
A panel_data
object.
Examples
data("WageData")
wages <- panel_data(WageData, id = id, wave = t)
[Package panelr version 0.7.8 Index]