group.tree: Observation Groups for Classification or Regression Tree

group.treeR Documentation

Observation Groups for Classification or Regression Tree

Description

Alternative to tree[["where"]] that orders groups from left to right in draw order.

Usage

  group.tree (tree)

Arguments

tree

object of class rpart or tree.

Details

Normally used with map.groups. See example.

Value

Vector of rearranged tree[["where"]]

Author(s)

Denis White

See Also

rpart, map.groups

Examples

  library (rpart)
  data (oregon.env.vars, oregon.grid)

  group <- group.tree (clip.rpart (rpart (oregon.env.vars), best=7))
  names(group) <- row.names(oregon.env.vars)
  map.groups (oregon.grid, group=group)

maptree documentation built on April 6, 2022, 5:09 p.m.

Related to group.tree in maptree...