Create a tree spec - version 2

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

This article documents the version 2 parsed model spec for tree models. Version 3 is the current format, and tidypredict still reads version 2 models for backwards compatibility. See tree internals for what changed.

spec_frame <- read.csv("tree.csv")
knitr::kable(spec_frame, row.names = FALSE)


Try the tidypredict package in your browser

Any scripts or data that you put into this service are public.

tidypredict documentation built on Oct. 18, 2026, 5:06 p.m.