create_variable.Rd
Create a variable
create_variable(value = 1, indexes, type = c("defined", "undefined"), desc)
value | a numeric vector with the value(s) to fill the array. |
---|---|
indexes | a named list with the indexes of the array. |
type | the variable type: "defined" or "undefined". |
desc | variable description. |
A named list with the values and type for the variable.
C <- c("sec1", "sec2", "sec3") create_variable( value = 1, indexes = list(C = C), type = "defined", desc = "variable description" )#> $value #> sec1 sec2 sec3 #> 1 1 1 #> #> $type #> [1] "defined" #> #> $desc #> [1] "variable description" #>