nameCols: Naming the columns of the 'tt' matrix

View source: R/nameCols.R

nameColsR Documentation

Naming the columns of the tt matrix

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 a tt matrix.

Usage

nameCols(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 sum 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(valuenames = infoval, size = sizes) )

dst documentation built on Nov. 16, 2023, 5:08 p.m.