Outputs in the data preparation program from data frames previously generated (can be used to modified a global variable)
name
: name of the data frame (to be added by user)
data
: data generated (NULL if omitted)
process
: process where output is generated in the data preparation program (to be added by user)
f_add()
does nothing, just allows to keep track of the new data frame created as output
to be used when in a process, a new data frame is created and there is no need to return it
Output_df( name = 'MasterData', data = new_data, process = 'CoV' )$f_add()
f_return()
simply returns the data of the object :
By default: return(data)
MasterData <- left_join( MasterData, Adj_CoV_Result, by = c('DMDUNIT','LOC','DMDGROUP','STARTDATE') )
is now replace by
( new_data <- left_join( MasterData, Adj_CoV_Result, by = c('DMDUNIT','LOC','DMDGROUP','STARTDATE'))
)
MasterData <- Output_df( name = 'MasterData', data = new_data, process = 'CoV' )$f_return()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.