Description Usage Arguments Details Value
A target object is either a named list that contains integer values (static target) or a data.frame that contains a 'time' column and other response columns (dynamic target). The type of of the target depends on its usage.
1 2 3 4 5 6 7 | check_target(x, null.ok = TRUE)
assert_target(x, null.ok = TRUE, .var.name = checkmate::vname(x), add = NULL)
test_target(x, null.ok = TRUE)
expect_target(x, null.ok = TRUE, info = NULL, label = vname(x))
|
x |
any object to check |
null.ok |
default as TRUE |
.var.name |
[ |
add |
checkmate::AssertCollection |
info |
[ |
label |
[ |
Here is an example of a static target list(yes=10, no=20)
. Here is an example
of a dynamic target data.frame(time = c(1,2,3), yes = c(10,11,12), no = c(20,21,22)
.
TRUE if x
is a valid target object else throws an error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.