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.
1 | check_data(x, dim_check = NA, type)
|
x |
Data or grid |
dim_check |
How many columns do we expect? |
type |
Is it the "grid" or "data" for use in error messages. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.