Learn R Programming

dst (version 1.8.0)

nameCols_prod: Naming the columns of the tt matrix of a product space

Description

This utility function makes use of the valuenames and size parameters of a set of variables to assign values names to the columns of the tt matrix of their product space.

Usage

nameCols_prod(valuenames, size)

Value

A character vector of length equal to the product of the sizes of the variables.

Arguments

valuenames

A list of the names of the variables with the name of the elements of their frame of discernment.

size

A vector of the size of the variables.

Author

Claude Boivin

Examples

Run this code
infoval <- list(A = c("a1", "a2"), B = c("b1", "b2", "b3"))
sizes <- c(2,3)
 print(nameCols_prod(valuenames = infoval, size = sizes) )

Run the code above in your browser using DataLab