check_sparse_var: Check if a variable is sparse

View source: R/bi_write.R

check_sparse_varR Documentation

Check if a variable is sparse

Description

Check if a variable is sparse

Usage

check_sparse_var(x, coord_cols, value_column)

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.

Value

TRUE if the variable is sparse, FALSE otherwise

Author(s)

Sebastian Funk


rbi documentation built on Aug. 15, 2023, 5:07 p.m.