Description Usage Arguments Value Author(s) References Examples
The constructor
1 | mtkParsor(xmlPath="")
|
xmlPath |
a string to specify the XML file to parse. |
an object of the mtkParsor
class
Juhui WANG, MIA-Jouy, Inra, Juhui.Wang@jouy.inra.fr
J. Wang, H. Richard, R. Faivre, H. Monod (2013). Le package mtk
, une bibliothèque R pour l'exploration numérique des modèles.
In: Analyse de sensibilité et exploration de modèles : Application aux sciences de la nature et de l'environnement
(R. Faivre, B. Iooss, S. Mahévas, D. Makowski, H. Monod, Eds). Editions Quae, Versailles.
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 | # Create a parsor with the file "inst/extdata/WWDM.xml".
# Specify the XML file's name
xmlFile <- "WWDM_morris.xml"
# find where the examples are held.
# This is only necessary for the example since the system does
# not know where the file "WWDM.xml" is kept.
xmlFilePath <- paste(path.package("mtk", quiet = TRUE),
"/extdata/",xmlFile,sep = "")
## Create a parsor from the xml file
parsor <- mtkParsor(xmlFilePath)
# Create an empty workflow.
workflow <- mtkExpWorkflow()
# Parse the XML file and initialize the workflow
# with the data extracted from the XML file.
run(parsor, workflow)
# Run the workflow and report the results of the sensitivity analysis
run(workflow)
summary(workflow)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.