powered by
Create ovariables more conveniently
ovariable
Ovariable(name = character(), data = data.frame(), formula = function(...) {0}, dependencies = data.frame(), ddata = character(), output = data.frame(), marginal = logical(), subset = character(), getddata = TRUE, save = FALSE, public = TRUE, ...)
character string for the name slot, should match object name
character
data.frame for the data slot
data.frame
function for the formula slot
function
data.frame for the dependencies slot
character string specifying an Opasnet page identifier (Op_enXXXX) for the ddata slot
data.frame for the output slot
logical for the marginal slot
logical
character string specifying an Opasnet Base subset (See opbase.data for details)
opbase.data
if TRUE dynamic data link will be activated immediately, which means that by default data will not be refreshed at model runtime
if TRUE resulting ovariable will be saved on the server
if TRUE objects.store is used instead of objects.put (the former stores the run key in a public database)
objects.store
objects.put
more arguments can be passed onto objects.store and objects.put in case save == TRUE.
save == TRUE
Returns an ovariable.
Just a regular constructor with integrated dynamic data link activation and storing options.
See also: http://en.opasnet.org/
ovariable-class
Ovariable("A", ddata = "Op_en5674", getddata = TRUE) k <- Ovariable("k", output = data.frame(B = "a", Result = 1)) o <- Ovariable("o", output = data.frame(B = "a", Result = 2)) k*o
Run the code above in your browser using DataLab