#' * `status`: `0` for terminal (`splitpoint` is `NA`) and `1` for non-terminal.
#' * `status`: `0` for terminal (`splitpoint` is `NA`) and `1` for non-terminal.
#'
#'
#' @keywords internal
#' @keywords internal
#' @md
getsingletree<-function(RF,k=1,add_layer=FALSE){
getsingletree<-function(RF,k=1,add_layer=FALSE){
# here we use the treeInfo function of the ranger package to create extract the trees, in an earlier version this was done with a self implemented function
# here we use the treeInfo function of the ranger package to create extract the trees, in an earlier version this was done with a self implemented function