Output_df-class: Outputs in the data preparation program from data frames...

Description Fields Methods

Description

Outputs in the data preparation program from data frames previously generated (can be used to modified a global variable)

Fields

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)

Methods

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

Example

Output_df( name = 'MasterData', data = new_data, process = 'CoV' )$f_add()

f_return()

simply returns the data of the object :

By default: return(data)

Example

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()


Pablo-Lopez-Sfi/dependenciesMap documentation built on June 30, 2020, 2:53 p.m.