create_variable: Create a variable

Description Usage Arguments Value Examples

View source: R/create_variable.R

Description

Create a variable

Usage

1
create_variable(value = 1, indexes, type = c("defined", "undefined"), desc)

Arguments

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.

Value

A named list with the values and type for the variable.

Examples

1
2
3
4
5
6
7
8
C <- c("sec1", "sec2", "sec3")

create_variable(
 value = 1,
 indexes = list(C = C),
 type = "defined",
 desc = "variable description"
)

paulofelipe/emr documentation built on July 23, 2021, 7:31 p.m.