get_cluster_mapping: Gets the corresponding cluster for each terminl node in a...

Description Usage Arguments Value Examples

View source: R/print_tree_rules.R

Description

returns a named vector, the names being the terminal node id in the tree and the values being the classification it corresponds to

Usage

1

Arguments

tree

a partykit::ctree fit

Value

a named vector

Examples

1
2
my_tree <- fit_ctree(small_5050_mix, c('CKB', 'ADA', 'ASNS', 'PRDX6', 'MZB1'))
get_cluster_mapping(my_tree)

jspaezp/sctree documentation built on April 30, 2020, 10:36 p.m.