doAllSchemeChecks: check whether either a 1 subject or multiple subject...

Description Usage Arguments Value Examples

View source: R/constraintFunctions.R

Description

check whether either a 1 subject or multiple subject microsampling scheme meets imposed constraints

Usage

1
doAllSchemeChecks(object, level, checks)

Arguments

object

a logical vector or matrix, TRUE when a sample is taken for a subject (row) and time point (column) combination

level

a character vector indicating either "subject" or "scheme" level

checks

a dataframe with check definitions

Value

logical value TRUE when all checks are pasted and FALSE if at least one check fails

Examples

1
2
3
4
5
6
7
  exampleChecks    <- getConstraintsExample()
  exampleSubject1  <-  c( TRUE  , TRUE  , TRUE , FALSE , FALSE , TRUE )
  exampleSubject2  <-  c( FALSE , FALSE , TRUE , FALSE , FALSE , TRUE )
  exampleScheme    <-  rbind( exampleSubject1, exampleSubject2 ) 
  doAllSchemeChecks( exampleSubject1 , "subject" , checks = exampleChecks )
  doAllSchemeChecks( exampleSubject2 , "subject" , checks = exampleChecks )
  doAllSchemeChecks( exampleScheme , "scheme" , checks = exampleChecks )

microsamplingDesign documentation built on Oct. 13, 2021, 5:10 p.m.