Learn R Programming

ceg (version 0.1.0)

Variable: Variable(name,categories)

Description

Variable(name,categories) is a function that act as constructor to Variable S4 object. Variable S4 class contains two slots with the Variable name and a list of Categories. It is used to construct Stratified.vent.tree objects.

Usage

Variable(name, categories)

Arguments

name

character, the Variable name

categories

a list of S4 Category objects.

Value

a Variable S4 object

Examples

Run this code
# NOT RUN {
var <- Variable("variable.name", list(Category("cat1"), Category("cat2"),
Category("cat3")))


# }

Run the code above in your browser using DataLab