checkMissing_remeas: Check the missing measurements in repeatedly measured subject...

View source: R/checkMissing_remeas.R

checkMissing_remeasR Documentation

Check the missing measurements in repeatedly measured subject against intended measurements

Description

This function is to check missing measurements in repeatedly measured subject against intended measurements. Note that this function allows the regeneration, which means there may be missing measurements at the begining of intended masurements. Additionally, the function may allow the missing measurements after a subject died, depending on how deadCode is specified.

Usage

checkMissing_remeas(
  subjectID,
  measNo,
  intendedMeasNo,
  deadCode = NULL,
  LDStatus
)

Arguments

subjectID

character, Specifies subject ID, such as a tree id.

measNo

numeric, Measurement number with bigger value indicates a later measurement.

intendedMeasNo

numeric, The measurement number that a subject is intended measured.

deadCode

character, The code indicates the subject is dead. This arguement serves two purposes: 1) switch the function whether check a subject under dead scenario (i.e., the missing measurement before last intended measurement). Setting NULL will turn off dead mode, arguement LDStatus will not be used in the function. 2) if the dead mode is turn on (i.e., anything but NULL), this term determines which code will be used for dead. In this case, arguement LSStatus must be specified. By default, this term is set as NULL.

LDStatus

character, Live or dead status. This arguement is called only when deadCode is not set as NULL.

Value

A data table that contains pass information. TRUE indicates pass, while FALSE indicates failure. The table also contains the missing measurements.

Author(s)

Yong Luo


bcgov/FAIBBase documentation built on June 19, 2024, 11:57 p.m.