Extract an element from an R6Flow
object.
element(flow, name = NULL) # S3 method for R6Flow [(flow, name)
flow | A flow object, e.g. as returned by |
---|---|
name | Element of the output data to be selected. The default is
|
An object with class Element
.
#>flow_element <- element(flowed_fn, "x") fn <- function(x, y) { list(x = x, y = y, Z = 7) } flowed_fn <- flow_fn(2, 3, fn = fn)#>element_name <- flowed_fn["x"]$elem_name