View source: R/combine_modules.R
| combine_modules | R Documentation |
Combines two mcmodules into a single mcmodule by merging their data and components.
combine_modules(mcmodule_x, mcmodule_y)
mcmodule_x |
First module to combine |
mcmodule_y |
Second module to combine |
A combined mcmodule object
module_x <- list(
data = list(data_x = data.frame(x = 1:3)),
node_list = list(
node1 = list(type = "in_node"),
node2 = list(type = "out_node")
),
modules = c("module_x"),
exp = quote({node2 <- node1 * 2})
)
module_y <- list(
data = list(data_y = data.frame(y = 4:6)),
node_list = list(node3 = list(type = "out_node")),
modules = c("module_y"),
exp = quote({node3 <- node1 + node2})
)
module_xy <- combine_modules(module_x, module_y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.