Ovariable: Ovariable constructor

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/OVariable.r

Description

Create ovariables more conveniently

Usage

1
2
3
4
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.

Details

Just a regular constructor with integrated dynamic data link activation and storing options.

See also: http://en.opasnet.org/

Value

Returns an ovariable.

Author(s)

T. Rintala teemu.rintala.a@gmail.com

See Also

ovariable-class

Examples

1
2
3
4
## Not run: 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

OpasnetUtils documentation built on May 2, 2019, 12:39 p.m.