check_sparse_var: Check if a variable is sparse
Description
Check if a variable is sparse
Usage
check_sparse_var(x, coord_cols, value_column)
Value
TRUE if the variable is sparse, FALSE otherwise
Arguments
- x
data.table
- coord_cols
character vector of coordinate columns
- value_column
the name of the value column
Details
Takes a data.table with given coordinate columns and a value column and
checks if all combinations of the coordinate columns are present for each
combination of the other columns.