1 ## ewLasso.R (2013-03-30)
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)
18 labels <- attr(X, "Labels")
19 if (is.null(labels)) labels <- as.character(1:N)
20 ans <- .C("ewLasso", as.double(X), as.integer(N),
21 phy$edge[, 1], phy$edge[, 2],
22 DUP = FALSE, NAOK = TRUE, PACKAGE = "ape")