check_data {lg} | R Documentation |
Check the data and grid
Description
Checks that the data or grid provided is of the correct form. This function
is an auxiliary function that can quickly check that a supplied data set or
grid is a matrix or a data frame, and that it has the correct dimension, as
defined by the dim_check
parameter. The type
argument is simply
a character vector "data" or "grid" that is used for printing error messages.
Usage
check_data(x, dim_check = NA, type)
Arguments
x |
Data or grid |
dim_check |
How many columns do we expect? |
type |
Is it the "grid" or "data" for use in error messages. |
[Package lg version 0.4.1 Index]