Description Usage Arguments Value Author(s) Examples
This function transforms a matrix of data with cross-sectional and time dimensions in rows and columns or columns and rows into a panel-structured, 3-column data frame
1 | pmpp_data(indata, t_dim = "cols", var_name = "Y")
|
indata |
matrix with a single variable |
t_dim |
character string, one of: 'cols', 'rows'; whether time dimension in indata is across columns or rows |
var_name |
character string; name of the variable in indata |
A data.frame
with 3 columns: unit, time and variable's values.
Michal Oleszak
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.