matrix_prep_dt: Prepare a two-column data.table that will be used to fill...

View source: R/matrix_prep_dt.R

matrix_prep_dtR Documentation

Prepare a two-column data.table that will be used to fill values in a matrix

Description

Prepare a two-column data.table that will be used to fill values in a matrix

Usage

matrix_prep_dt(row_var_names = NULL, col_var_names = NULL)

Arguments

row_var_names

a vector of variable names, each of which will be header of a row in the eventual matrix

col_var_names

a vector of variable names, each of which will be header of a column in the eventual matrix

Examples

matrix_prep_dt(
  row_var_names = c("mpg", "cyl"),
  col_var_names = c("hp", "gear")
)

kim documentation built on Oct. 9, 2023, 5:08 p.m.