tag:blogger.com,1999:blog-8499895524521663926.post3152203959801080542..comments2024-03-27T07:13:39.236-04:00Comments on Phylogenetic Tools for Comparative Biology: Using detach() to unload a libraryLiam Revellhttp://www.blogger.com/profile/04314686830842384151noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8499895524521663926.post-54953104188376561332017-09-28T03:32:43.611-04:002017-09-28T03:32:43.611-04:00This comment has been removed by the author.reginald suricthttps://www.blogger.com/profile/02865395258495641241noreply@blogger.comtag:blogger.com,1999:blog-8499895524521663926.post-4172617094088371472016-07-25T19:34:10.445-04:002016-07-25T19:34:10.445-04:00Hi Liam
Very helpful post. I am trying to cut my t...Hi Liam<br />Very helpful post. I am trying to cut my tree as well.<br />Here is the structure of my tree:<br />str(nj_tree_root)<br />List of 4<br /> $ edge : int [1:508, 1:2] 256 509 323 322 321 320 319 318 317 309 ...<br /> $ edge.length: num [1:508] 0 0 0 0 0 ...<br /> $ tip.label : chr [1:255] "hxAUG26up1s7g100t1" "hxAUG26us32g70t1" "hxAUG26rep1s3g123t1" "hxNCBI_GNO_60424" ...<br /> $ Nnode : int 254<br /> - attr(*, "class")= chr "phylo"<br /> - attr(*, "order")= chr "cladewise"<br /><br />When I use your program as follows:<br />trees<-treeSlice(nj_tree,0.0)<br />Error in if (node <= Ntip) stop("node number must be greater than the number of tips") :<br /> missing value where TRUE/FALSE needed<br />I receive the above error.<br />Any help is appreciated.<br />Rocky<br />Anonymoushttps://www.blogger.com/profile/00045847547570548748noreply@blogger.comtag:blogger.com,1999:blog-8499895524521663926.post-67551773051280373542013-04-01T10:12:10.748-04:002013-04-01T10:12:10.748-04:00This a very old post, but I think this will not re...This a very old post, but I think this will not really unload the package unless you do:<br /><br />detach("package:phytools",unload=TRUE)Liam Revellhttps://www.blogger.com/profile/04314686830842384151noreply@blogger.com