Learn R Programming

VBTree package

Vector Binary Tree: a Database Technique for Efficient Data Group Processing

Brief Introduction

The R-package name, VBTree, abbreviated from vector binary tree, is a data structure designed for providing an easy and efficient approach for data group processing.

As we know, for many tasks with group attribute such as data visualization for specific conditions, data workers in R need to do much preliminary operations from raw data. According to different needs, the raw data should be melted or reshaped into a data frame with the proper styel, which steps are usually frustrating and tedious. Especially, if the raw data is of a large scale, these operations will further increase its object size then make the project inefficient.

VBTree is aimed to build a logical mapping between your raw data and your projects, through correctly setting column names of your raw data. Now you can imagine a data frame with many but limited columns, and with millions of rows, all your management on that data can be implemented just by reading its column names. The imported column names are saved in forms of vector binary tree, double list and array (tensor), which three can be convertible mutually. For different task objectives, you can use the rules in VBTree to build your code for telling your program how to extract your desired subset from the raw data.

We assume there is a data with 10 variables and 2 levels for each variable, if all combinations will be listed fully into columns, it must be 1024 columns in your data frame. For data visualization, non-numeric varaibles will be melted which makes the data frame further increased in object size. While as for management methods in VBTree, most of your requirements in data processing will be achieved, by constructing a vector binary tree with the structure of only 10 layers and 2 levels in each layer.

Installation

Installation from CRAN:

install.packages("VBTree")

Installation from github:

library(devtools)
devtools::install_github("CubicZebra/VBTree")

Contact

Author: Chen ZHANG

Mail: chen.zhang_06sept@foxmail.com

Copy Link

Version

Install

install.packages('VBTree')

Monthly Downloads

103

Version

0.1.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Chen Zhang

Last Published

January 12th, 2024

Functions in VBTree (0.1.1)

vbt2ts

Convert a vector binary tree to tensor
vbtinq

Using vector to visit vector binary tree
vbtsub

Using vector to generate sub tree from vector binary tree
ts2vbt

Convert a structured character tensor to double list
ts2dl

Convert a structured character tensor to double list
datavisit

Extract subset of data using different methods
hello

Welcome message
VBTree-package

tools:::Rd_package_title("VBTree")
trvs

Make traversal from vector binary tree
chrvec2dl

Convert character vector to a double list
dl2arr

Convert a double list to array
arr2dl

Convert a structured character array to double list
arr2vbt

Convert a structured character array to double list
trvseleinq

Using character element to visit the traversal table
datatest

A test data structurized column names.
advbtsub

Using double list to generate sub tree from vector binary tree
trvsidxinq

Using vector to visit the traversal table
dl2ts

Convert a double list to tensor
dl2vbt

Convert a double list to vector binary tree
vbt2arr

Convert a vector binary tree to array
vbt2dl

Convert a vector binary tree to double list
advbtinq

Using double list to visit vector binary tree
trvssubinq

Using sub vector binary tree to visit the traversal table