1 ## treePop.R (2011-10-11)
5 ## Copyright 2011 Andrei-Alin Popescu
7 ## This file is part of the R-package `ape'.
8 ## See the file ../COPYING for licensing issues.
10 treePop <- function(obj)
17 mimf <- matrix(imf, nrow(mf), ncol(mf))
18 ans <- .C("treePop", mimf, as.double(freq), as.integer(ncol(mf)),
19 as.integer(n), integer(2*n - 3), integer(2*n - 3),
20 double(2*n - 3), DUP = FALSE, NAOK = TRUE, PACKAGE = "ape")
21 obj <- list(edge = cbind(ans[[5]], ans[[6]]), edge.length = ans[[7]],
22 tip.label = labels, Nnode = n - 2L)