type_check | R Documentation |
Given two named objects, go through both and make the types of the second match the types of the first.
type_check(
template,
target,
with_cast = FALSE,
log_items = c("casts", "missing", "excess", "debug")[c(1, 3)]
)
template |
|
target |
|
with_cast |
|
log_items |
|
The target object, with its types appropriately cast.
type_check(
list("a" = character(0), "b" = integer(0)),
data.frame("a" = c(1,2), "b" = c(3,4)),
TRUE, NULL
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.