arr2dl: Convert a structured character array to double list

View source: R/arrCvrt.R

arr2dlR Documentation

Convert a structured character array to double list

Description

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

Usage

arr2dl(x, ...)

Arguments

x

A structured character array to be converted.

...

Argument in chrvec2dl to control split pattern.

Value

Return a double list based on the input array.

See Also

arr2vbt, chrvec2dl.

Examples

#Write the column names of datatest into a array:
arr <- dl2arr(chrvec2dl(colnames(datatest)))

#Recover the double list from character array:
arr2dl(arr)

CubicZebra/VBTree documentation built on Feb. 3, 2024, 3:42 p.m.