Description Usage Arguments Details Value See Also Examples
Obtains a specific output
1 2 3 4 5 | getOutputById(object, reqId, includeCall = F)
## S4 method for signature 'BaseAnalysisPipeline'
getOutputById(object, reqId,
includeCall = F)
|
object |
The |
reqId |
The position of the function for which the output is desired in the sequence of operations in the pipeline. |
includeCall |
Logical which defines whether the call used to generate the output should be returned. By, default this is false |
Obtains a specific output from the AnalysisPipeline
or StreamingAnalysisPipeline
object by passing the position
of the function for which the output is desired, in the sequence of operations in the pipeline. This can be obtained by passing the number
under the 'id' column in the pipeline table corresponding to the required function
This method is implemented on the base class as it is a shared functionality types of Analysis Pipelines which extend this class
If includeCall = F, the output object generated by the function is returned
If includeCall = T, it is a list containing to elements - call: tibble with 1 row containing the function call for the output desired - output: output generated
Other Package core functions: BaseAnalysisPipeline-class
,
MetaAnalysisPipeline-class
,
assessEngineSetUp
,
checkSchemaMatch
,
createPipelineInstance
,
exportAsMetaPipeline
,
generateOutput
,
genericPipelineException
,
getInput
, getLoggerDetails
,
getPipelinePrototype
,
getPipeline
, getRegistry
,
initDfBasedOnType
,
initialize,BaseAnalysisPipeline-method
,
loadMetaPipeline
,
loadPipeline
,
loadPredefinedFunctionRegistry
,
loadRegistry
, prepExecution
,
registerFunction
,
savePipeline
, saveRegistry
,
setInput
, setLoggerDetails
,
updateObject
,
visualizePipeline
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
library(analysisPipelines)
pipelineObj <- AnalysisPipeline(input = iris)
getNumRows <- function(dataset){
return(nrow(dataset))
}
registerFunction("getNumRows")
pipelineObj %>>% getNumRows(storeOutput = TRUE) -> pipelineObj
pipelineObj %>>% generateOutput %>>% getOutputById("1")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.