nameCols_prod {dst}R Documentation

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)

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.

Value

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

Author(s)

Claude Boivin

Examples

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

[Package dst version 1.6.0 Index]