Description Usage Arguments Examples
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
1 | meta.dataLoader(verbose.mode = TRUE)
|
verbose.mode |
boolean. If TRUE some messages will appear in console, during the computation; otherwise the computation will be silent. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.