powered by
tt
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.
nameCols(valuenames, size)
A character vector of length equal to the sum of the sizes of the variables.
A list of the names of the variables with the name of the elements of their frame of discernment.
A vector of the size of the variables.
Claude Boivin
infoval <- list(A = c("a1", "a2"), B = c("b1", "b2", "b3")) sizes <- c(2,3) print(nameCols(valuenames = infoval, size = sizes) )
Run the code above in your browser using DataLab