ptree_y: ptree_y

Usage Arguments Examples

Usage

1
ptree_y(newtree, node_id)

Arguments

newtree
node_id

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (newtree, node_id) 
{
    p <- nodes(newtree, node_id)[[1]]$prediction
    if (length(p) == 2) {
        return(p[2])
    }
    return(p)
  }

jwolfson/visparty documentation built on May 20, 2019, 6:27 a.m.