check_sparse_var | R Documentation |
Check if a variable is sparse
check_sparse_var(x, coord_cols, value_column)
x |
data.table |
coord_cols |
character vector of coordinate columns |
value_column |
the name of the value column |
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.
TRUE if the variable is sparse, FALSE otherwise
Sebastian Funk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.