Checking whether functions work across different types of objects
Source:R/function_application.R
functions_work.Rdfunctions_work() calls each of the functions on each of the objects,
and reports which calls run without an error.
Value
A logical matrix with a row for each function and
a column for each object.
An element is TRUE where the function runs on the object without an error.
Examples
library(manynet)
functions_work(c("net_nodes", "net_ties", "net_density"),
c("ison_adolescents", "ison_southern_women"))
#> ℹ `net_density()` was moved since manynet 2.0.0. Please use
#> `netrics::net_by_density()`
#> ℹ `net_density()` was moved since manynet 2.0.0. Please use
#> `netrics::net_by_density()`
#> ison_adolescents ison_southern_women
#> net_nodes TRUE TRUE
#> net_ties TRUE TRUE
#> net_density FALSE FALSE