Learn R Programming

pMineR (version 0.31)

meta.dataLoader: Load the event-logs serializing many dataLoaders objs

Description

This class is more abstract than dataLoader and provide some facilities, in particular to cope with dictionaries and tranlations. Because it handles, internally, a set of dataLoader objects, any dataLoader object must be referred by 'view'.
  • meta.dataLoader() the costructor
  • load.csv( ... ) loads the csv file into the dataLoader object
  • load.data.frame() loads a data.frame into the dataLoader object
  • getData() return the processed, previously-loaded, data
  • removeEvents() remove the events in the array passed as argument (dual of dataLoader::keepOnlyEvents() )
  • keepOnlyEvents() keep only the events in the array passed as argument (dual of dataLoader::removeEvents() )
  • addDictionary() add a dictionary in order, afterward, to translate or group some event name
  • getTranslation() perform a translation applying the given dictionary to the loaded csv or data.frame
  • plot.Timeline() plot the timeline of the events regarding a single patient
In order to better undestand the use of such methods, please visit: www.pminer.info The consturctor admit the following parameters: verbose.mode are some notification wished, during the computation? The defaul value is true

Usage

meta.dataLoader(verbose.mode = TRUE)

Arguments

verbose.mode
boolean. If TRUE some messages will appear in console, during the computation; otherwise the computation will be silent.

Examples

Run this code
## Not run: 
# 
# # create a Loader
# obj.L<-meta.dataLoader();   
# 
# # create a view
# obj.L$createView(view.name = "mammella")
# obj.L$createView(view.name = "retto")
# 
# # Load a .csv into the view 'mammella'
# obj.L$load.csv(nomeFile = "../otherFiles/mammella.csv",
# IDName = "CODICE_SANITARIO_ADT",
# EVENTName = "DESC_REPARTO_RICOVERO",
# dateColumnName = "DATA_RICOVERO", view="mammella")
# 
# # Load a .csv into the view 'retto'
# obj.L$load.csv(nomeFile = "../otherFiles/mammella.csv",
# IDName = "CODICE_SANITARIO_ADT",
# EVENTName = "DESC_REPARTO_RICOVERO",
# dateColumnName = "DATA_RICOVERO", view="retto")
# 
# # get the data from the view 'retto'
# aaa <- obj.L$getData(view = "retto")
# 
# 
# ## End(Not run)

Run the code above in your browser using DataLab