Evaluate whether the data argument is properly formatted.
Source:R/mm_validate_data.R
mm_validate_data.Rd
Will most often be called from within a metab_model constructor.
Arguments
- data
data.frame (not a tbl_df) of input data at the temporal resolution of raw observations (unit-value). Columns must have the same names, units, and format as the default. The solar.time column must also have a timezone code ('tzone' attribute) of 'UTC'. See the 'Formatting
data
' section below for a full description.- data_daily
data.frame containing inputs with a daily timestep. See the 'Formatting
data_daily
' section below for a full description.- metab_class
character the class name of the metab_model constructor
- data_tests
list of tests to conduct to determine whether the input data.frames are properly formatted to allow modeling to begin