Simulate a dbSparseMatrix in memory
Simulate a dbDenseMatrix in memory.
Usage
sim_duckdb(value = datasets::iris, name = "test", con = NULL, memory = TRUE)
sim_dgc(num_rows = 50, num_cols = 50, n_vals = 50)
sim_denseMat(num_rows = 50, num_cols = 50)
sim_ijx_matrix(mat_type = NULL, num_rows = 50, num_cols = 50, seed_num = 42)
sim_dbSparseMatrix(
num_rows = 50,
num_cols = 50,
seed_num = 42,
name = "sparse_test",
memory = FALSE
)
sim_dbDenseMatrix(
num_rows = 50,
num_cols = 50,
seed_num = 42,
name = "dense_test",
memory = FALSE
)
Details
This function generates a simulated sparse matrix (dgCMatrix) with number of rows and columns and sets n_vals random values to a non-zero value.
This function generates a simulated dense matrix object with a specified number of rows and columns.
This function generates an ijx representation of a simulated dgCMatrix object with a specified number of rows and columns and sets 50 random values to a non-zero value.
Functions
sim_duckdb()
: Simulate a duckdb connection dplyr tbl_Pool in memorysim_dgc()
: Simulate a dgcMatrixsim_denseMat()
: Simulate a dense matrixsim_ijx_matrix()
: Simulate a duckdb connection dplyr tbl_Pool in memorysim_dbSparseMatrix()
: Simulate a dbSparseMatrix in memorysim_dbDenseMatrix()
: Simulate a dbDenseMatrix in memory