View source: R/04-fruitsClass.R
fruits | R Documentation |
fruits
All arguments are checked for correct class, length, names etc. Constants and model code are added automatically.
fruits(
data,
modelOptions,
valueNames,
priors = list(),
userEstimates = list(list(), list())
)
data |
list: input data |
modelOptions |
list: contains elements |
valueNames |
list: contains names for the |
priors |
list of characters with prior expressions |
userEstimates |
list of characters |
## Not run:
# load fruits data:
load(system.file("app/exampleModels/", "fruitsExample.Rdata", package = "ReSources"))
# get Fruits-Object
fruitsObj <- fruits(data, modelOptions, valueNames, priors, userEstimates)
# run model
model <- compileRunModel(fruitsObj)
modelResults <- getResultStatistics(model$parameters, model$userEstimateSamples, fruitsObj,
DT = FALSE, agg = FALSE
)
# better: use shiny app:
shiny::runApp(paste0(system.file(package = "ReSources"), "/app"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.