Description Usage Arguments Value Examples
View source: R/constraintFunctions.R
check whether either a 1 subject or multiple subject microsampling scheme meets imposed constraints
1 | doAllSchemeChecks(object, level, checks)
|
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 |
logical value TRUE when all checks are pasted and FALSE if at least one check fails
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 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.