Description Usage Arguments Value Examples
View source: R/pca_functions.R
Convert a balanced panel tbl into a matrix, id_var as rows, t_var as columns
| 1 | get_matrix(tbl, id_var = id, t_var = year, x_var = g_i)
 | 
| 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 | 
| x_var | The (quoted or unquoted) name of the variable to put in the matrix | 
A matrix
| 1 2 | asm <- fakedata::fake_panel(N = 50, T = 10, missing = 0.1)
get_matrix(asm, id, year, g)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.