Description Usage Arguments Details Value Examples
Takes an unbalanced panel dataset and makes it balanced by inserting rows for missing time periods and initializing with NAs for other columns that are not the time or individual variable.
1 |
df |
data.frame of unbalanced panel data |
datev |
name of data variable in data.frame |
id |
name of individual/entity variable. Company ID, country or people's names, for example. |
freq |
desired frequency of the time-series' |
Doesn't have any special treatment for duplicate values in the input time panel dataset. Currently handles time/date objects of type "Date" or "numeric". Can add POSIX and other date/time classes as needed.
balanced panel dataset as a data.frame. Values for dates that are missing in the input dataset show up as NAs
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.