snip.tree(tree)
snip.tree()所属R语言包:tree
Snip Parts of Tree Objects
剪断零件的树对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
snip.tree has two related functions. If nodes is supplied, it removes those nodes and all their descendants from the tree.
snip.tree有两个相关的功能。如果nodes提供,它从树中删除这些节点和他们的后代。
If nodes is not supplied, the user is invited to select nodes interactively; this makes sense only if the tree has already been plotted. A node is selected by clicking with the left mouse button; its number and the deviance of the current tree and that which would remain if that node were removed are printed. Selecting the same node again causes it to be removed (and the lines of its sub-tree erased). Clicking any other button terminates the selection process.
nodes如果没有提供,请用户交互式地选择节点,这是有道理的,如果树已经绘制。一个节点被选中,点击鼠标左键,打印的数量和当前树的偏差,这将继续,如果该节点被拆除。再次选择在同一个节点,导致它被移除(和其子树的行擦除)。单击任何其他按钮终止的选择过程。
用法----------Usage----------
snip.tree(tree, nodes, xy.save = FALSE,
digits = getOption("digits") - 3)
参数----------Arguments----------
参数:tree
An object of class "tree".
对象的类"tree"。
参数:nodes
An integer vector giving those nodes that are the roots of sub-trees to be snipped off. If missing, the user is invited to select a node at which to snip.
一个整数向量,这些节点的子树的根剪掉。如果缺少,请用户选择一个节点在剪断。
参数:xy.save
If true, the x and y coordinates selected interactively are saved in the object .xy in the global environment.
如果为true,x和y坐标交互选择的对象保存在.xy在全球环境中的。
参数:digits
Precision used in printing statistics for selected nodes.
精密用于打印统计选定的节点。
值----------Value----------
A tree object containing the nodes that remain after specified or selected subtrees have been snipped off.
一棵树对象,其中包含指定或选择的子树后的剩余节点的已被剪掉。
(作者)----------Author(s)----------
B. D. Ripley
参见----------See Also----------
tree, prune.tree.
tree,prune.tree。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|