check_data: Check the data and grid

Description Usage Arguments

View source: R/checks.R

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

1
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.


hotneim/lg documentation built on May 9, 2020, 7:35 a.m.