1 ## ewLasso.R (2013-04-02)
5 ## Copyright 2013 Andrei-Alin Popescu
7 ## This file is part of the R-package `ape'.
8 ## See the file ../COPYING for licensing issues.
10 ewLasso <- function(X, phy)
12 if (is.matrix(X)) X <- as.dist(X)
19 warning("'phy' is rooted: it was unrooted for this operation")
23 labels <- attr(X, "Labels")
24 if (is.null(labels)) labels <- as.character(1:N)
25 ans <- .C("ewLasso", as.double(X), as.integer(N),
26 as.integer(phy$edge[, 1]), as.integer(phy$edge[, 2]),
27 DUP = FALSE, NAOK = TRUE, PACKAGE = "ape")