How to convert an R data.tree to JSON
Learn how to convert a data.tree Node to a JSON representation, and back, using a custom converter.
Learn how to convert a data.tree Node to a JSON representation, and back, using a custom converter.
This introduction provides a stylized example of the capabilities of the R package data.tree. The code for the implementation of the (already a bit outdated) ID3 algorithm was written in less than an hour. This is possible because, thanks to the data.tree package, the implementation of the training algorithm follows the algorithm’s pseudo code almost line by line.