Learn R Programming

mtk (version 1.0)

mtkAnalyser: The constructor of the class mtkAnalyser

Description

The constructor

Usage

mtkAnalyser(protocol = "R", site = "mtk", service = "", parameters= NULL, parametersList = NULL, ready = TRUE, state = FALSE, result = NULL)

Arguments

protocol
a string from "http", "system", "R" respectively representing if the process is implemented remotely, locally or as R function.
site
the site where the process is implemented if remotely or the package where the process is implemented if as a R function.
service
a string corresponding to the name of the method implemented in the package "mtk" or the service that implements the process if remotely.
parameters
a vector of [mtkParameter] representing the parameters necessary to run the process.
parametersList
a named list containing the parameters necessary to run the process. It gives another way to specify the parameters.
ready
a logical to indicate if the process is ready to run.
state
a logical to indicate if the process finished running and the results are available.
result
an object of a class derived from [mtkAnalyserResult] to hold the results produced by the analyser.

Value

mtkAnalyser class

References

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.

Examples

Run this code

# Creates an analyser avec the method "Morris" implemented 
# in the package "mtk"
	analyser <- mtkAnalyser(service="Morris", 
		parametersList=list(nboot=20))

Run the code above in your browser using DataLab