Description Usage Arguments Value Examples
View source: R/flow-functions.R
Get the data from an R6Flow
or an Element
object
1 2 3 4 5 |
x |
A flow object, e.g. as returned by |
... |
Name of the element of the output data to be selected.
If present, it must be named |
Data associated with the output of the function.
1 2 3 4 5 6 7 8 9 10 | fn <- function(x, y) { x + y + 4 }
flowed_fn <- flow_fn(2, 3, fn = fn)
flow_result <- flowed_fn %>% collect()
fn <- function(x, y) { list(x = x, y = y, z = 5) }
flowed_fn <- flow_fn(2, 3, fn = fn)
flow_result <- flowed_fn %>%
collect()
flow_element <- element(flowed_fn, "x")
collected_element_value <- collect(flow_element)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.