This function performs basic tests to determine whether a temperature record complies with chillR's formatting rules. If desired, the function also checks whether the record is complete (has rows for all time units in the interval) and how many values are missing.
check_temperature_record(
weather,
hourly = FALSE,
completeness_check = TRUE,
no_variable_check = FALSE
)
list containing the following elements: 'data_frequency' ("daily or "hourly), 'weather_object' (boolean, indicates whether records are in a sub-object called weather), 'chillR_compliant' (boolean, indicates whether the object was found to conform to chillR format standards) and 'error' (contains error messages generated during the checking procedure).
object to be tested for whether it contains chillR-compatible temperature data.
boolean parameter indicating whether temp_record contains hourly data. If not, it is assumed to consist of daily records (the default).
boolean parameter indicating whether the records should be checked for completeness.
boolean parameter to indicate whether the function should check if the dataset contains the usual chillR temperature variables. Defaults to TRUE, but should be set to FALSE for different data formats.
Eike Luedeling
The chillR package:
Luedeling E, Kunz A and Blanke M, 2013. Identification of chilling and heat requirements of cherry trees - a statistical approach. International Journal of Biometeorology 57,679-689.
check_temperature_record(KA_weather)
Run the code above in your browser using DataLab