starvz_check_data {starvz}R Documentation

Check if all required data is available

Description

The following conditions are check in order and return FALSE if any fail - If data is not NULL - If data is a StarVZ Class - If data has all tables (given by the names of the list tables) - If each respective table has all columns (given the associated vector) - Execute extra_func on data (that should return true or false)

Usage

starvz_check_data(data = NULL,
             tables = list(), extra_func = NULL)

Arguments

data

starvz_data with trace data

tables

A named list (names are tables of data) of vectors (elements are columns), if tables is null continue

extra_func

Extra function to be applied on data to do a last check

Value

Logical, TRUE if data pass all tests

Examples

starvz_check_data(starvz_sample_lu,
  tables = list("Comm_state" = c("Node"))
)

[Package starvz version 0.8.0 Index]