Learn R Programming

VBTree (version 0.1.0)

dl2ts: Convert a double list to tensor

Description

Convert a double list to a tensor. The pure numeric layers will be sorted intrinsically then all elements will be bound in certain order as one character element, and filled into the proper location in the tensor.

Usage

dl2ts(x)

Arguments

x

A double list to be converted.

Value

Return a tensor filled with the binding character elements.

See Also

dl2vbt, dl2arr.

Examples

Run this code
# NOT RUN {
#Make column names of datatest into double list:
dl <- chrvec2dl(colnames(datatest), "-")

#Convert the double list to a tensor:
dl2ts(dl)
# }

Run the code above in your browser using DataLab