Displaying 2 results from an estimated 2 matches for "tree5".
Did you mean:
tree
2012 Apr 13
1
Coding columns for survival analysis
...is first observed, "alive" for when a
tree is found alive and is not just found, and "mort" when it was
previously alive but is now dead.
Given the following:
> tree_live = data.frame(tree =
c("tree1","tree2","tree3","tree4","tree5"), live1 = c(0,0,0,1,1), live2
= c(0,0,1,1,0), live3 = c(0,1,1,0,0), live4 = c(1,1,0,0,0), live5 = c(1,
0, 0, 0, 0))
tree live1 live2 live3 live4 live5
1 tree1 0 0 0 1 1
2 tree2 0 0 1 1 0
3 tree3 0 1 1 0 0
4 tr...
2006 Jan 17
0
Cannot convert from phylo to hclust , error!!???
...luster)
library(stats)
library(ape)
data<-read.table(file="in.matrix",header=FALSE,sep="\t",row.names=1)
dis<-dist.binary(data,method=5,diag=TRUE)
clust<-hclust(dis)
tree1<-as.phylo(clust)
tree2<-as.phylo(clust)
tree3<-as.phylo(clust)
tree4<-as.phylo(clust)
tree5<-as.phylo(clust)
liste <-list(tree1,tree2,tree3,tree4,tree5)
cons<-consensus(liste,p=0.5)
cons_clust <-as.hclust(cons)
Error in "[<-"(`*tmp*`, i, value = numeric(0)) :
nothing to replace
david