hc2Newick(ctc)
hc2Newick()所属R语言包:ctc
Convert hclust objects to Newick format files
转换hclust对象到Newick格式的文件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Convert hclust objects to Newick format files.
转换hclust对象到Newick格式的文件。
用法----------Usage----------
hc2Newick(hc, flat=TRUE)
参数----------Arguments----------
参数:hc
a hclust object (as returned by the function hclust in the package stats)
hclust对象(如函数返回hclust包stats)
参数:flat
a boolean (see section value).
一个布尔(参见价值)。
值----------Value----------
If flat=TRUE the result is a string (that you can write in a file).
如果flat=TRUE结果是一个字符串(你可以写在一个文件中)。
If flat=FALSE the result is a list (of lists). Each list is consituted of the elements left, right and dist.
如果flat=FALSE结果是一个列表(列表)。每个列表元素consituted left,right和dist。
作者(S)----------Author(s)----------
Laurent (laurent@cbs.dtu.dk)
参考文献----------References----------
for Huge Clustering, R News, 2006, vol 6, issue 5 pages 58-60.
举例----------Examples----------
data(USArrests)
h = hclust(dist(USArrests))
write(hc2Newick(h),file='hclust.newick')
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|