apollo_validateData function

Validates data

Validates data

Checks consistency of the database with apollo_control, sorts it by indivID, and adds an internal ID variable (apollo_sequence)

apollo_validateData(database, apollo_control, silent)

Arguments

  • database: data.frame. Data used by model.
  • apollo_control: List. Options controlling the running of the code. See apollo_validateInputs .
  • silent: Boolean. TRUE to prevent the function from printing to the console. Default is FALSE.

Returns

Data.frame. Validated version of database.

Details

This function should be called after calling apollo_validateControl . Observations are sorted only if apollo_control$panelData=TRUE.

  • Maintainer: Stephane Hess
  • License: GPL-2
  • Last published: 2025-03-12