Description Usage Details Author(s) Examples
Get Many to One Values that Led to a Prior Error
1 |
If assert_one_to_one()
detects an issue, the many to one values are stored
in a dataset. This dataset can be retrieved by get_many_to_one_dataset()
.
Note that the function always returns the many to one values from the last
error that has been thrown in the current R session. Thus, after restarting
the R sessions get_many_to_one_dataset()
will return NULL
and after a
second error has been thrown, the dataset of the first error can no longer be
accessed (unless it has been saved in a variable).
Stefan Bundfuss
1 2 3 4 5 6 7 | data(adsl)
try(
assert_one_to_one(adsl, vars(SITEID), vars(STUDYID))
)
get_many_to_one_dataset()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.