Learn R Programming

OpasnetUtils (version 1.1.0)

Ovariable: Ovariable constructor

Description

Create ovariables more conveniently

Usage

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, ...)

Arguments

name
character string for the name slot, should match object name
data
data.frame for the data slot
formula
function for the formula slot
dependencies
data.frame for the dependencies slot
ddata
character string specifying an Opasnet page identifier (Op_enXXXX) for the ddata slot
output
data.frame for the output slot
marginal
logical for the marginal slot
subset
character string specifying an Opasnet Base subset (See opbase.data for details)
getddata
if TRUE dynamic data link will be activated immediately, which means that by default data will not be refreshed at model runtime
save
if TRUE resulting ovariable will be saved on the server
public
if TRUE objects.store is used instead of objects.put (the former stores the run key in a public database)
...
more arguments can be passed onto objects.store and objects.put in case save == TRUE.

Value

  • Returns an ovariable.

Details

Just a regular constructor with integrated dynamic data link activation and storing options. See also: http://en.opasnet.org/

See Also

ovariable-class

Examples

Run this code
Ovariable("A", ddata = "Op_en5674", getddata = TRUE)
k <- Ovariable("k", output = data.frame(B = "a", Result = 1))

Run the code above in your browser using DataLab