Learn R Programming

pMineR (version 0.31)

dataLoader: Load the event-logs

Description

A loader for csv based log files. It also calculates the footprint table, transition matrix probabilities, and presents data in different shapes. The public methods are:
  • 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

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<-dataLoader();   
# 
# # Load a .csv 
# obj.L$load.csv(nomeFile = "../otherFiles/mammella.csv",
# IDName = "CODICE_SANITARIO_ADT",
# EVENTName = "DESC_REPARTO_RICOVERO",
# dateColumnName = "DATA_RICOVERO")
# 
# # return the results
# obj.L$getData()
# 
# ## End(Not run)

Run the code above in your browser using DataLab