ts2dl: Convert a structured character tensor to double list

Description Usage Arguments Value See Also Examples

View source: R/tsCvrt.R

Description

Convert a structured character tensor to a double list. All character elements in tensor will be splited by a specific pattern then sorted intrinsically in each layer of the double list.

Usage

1
ts2dl(x, ...)

Arguments

x

A structured character tensor to be converted.

...

Argument in chrvec2dl to control split pattern.

Value

Return a double list based on the input tensor.

See Also

ts2vbt, chrvec2dl.

Examples

1
2
3
4
5
#Write the column names of datatest into a tensor:
ts <- dl2ts(chrvec2dl(colnames(datatest)))

#Recover the double list from character tensor:
ts2dl(ts)

VBTree documentation built on May 2, 2019, 12:39 p.m.