Prepare a two-column data.table that will be used to fill values in a matrix
matrix_prep_dt(row_var_names = NULL, col_var_names = NULL)
row_var_names
: a vector of variable names, each of which will be header of a row in the eventual matrixcol_var_names
: a vector of variable names, each of which will be header of a column in the eventual matrixmatrix_prep_dt( row_var_names = c("mpg", "cyl"), col_var_names = c("hp", "gear") )
Useful links