From: paradis Date: Tue, 19 May 2009 13:10:25 +0000 (+0000) Subject: new c.DNAbin() X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5b88d637fc5ae12085847b35271ffa82ccc3b221;p=ape.git new c.DNAbin() git-svn-id: https://svn.mpl.ird.fr/ape/dev/ape@74 6e262413-ae40-0410-9e79-b911bd7a66b7 --- diff --git a/ChangeLog b/ChangeLog index 9191a65..accd346 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ CHANGES IN APE VERSION 2.3-1 +NEW FEATURES + + o There is now a c() method for lists of class "DNAbin". + + BUG FIXES o dist.gene() failed on most occasions with the default diff --git a/DESCRIPTION b/DESCRIPTION index 54665c2..7f69fe2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ape Version: 2.3-1 -Date: 2009-05-13 +Date: 2009-05-19 Title: Analyses of Phylogenetics and Evolution Author: Emmanuel Paradis, Ben Bolker, Julien Claude, Hoa Sien Cuong, Richard Desper, Benoit Durand, Julien Dutheil, Olivier Gascuel, Gangolf Jobb, Christoph Heibl, Daniel Lawson, Vincent Lefort, Pierre Legendre, Jim Lemon, Yvonnick Noel, Johan Nylander, Rainer Opgen-Rhein, Korbinian Strimmer, Damien de Vienne Maintainer: Emmanuel Paradis diff --git a/R/DNA.R b/R/DNA.R index 7599265..b73d795 100644 --- a/R/DNA.R +++ b/R/DNA.R @@ -1,4 +1,4 @@ -## DNA.R (2009-05-10) +## DNA.R (2009-05-19) ## Manipulations and Comparisons of DNA Sequences @@ -142,6 +142,9 @@ cbind.DNAbin <- ans } +c.DNAbin <- function(..., recursive = FALSE) + structure(NextMethod("c"), class = "DNAbin") + print.DNAbin <- function(x, ...) { n <- 1 # <- if is.vector(x) diff --git a/man/DNAbin.Rd b/man/DNAbin.Rd index 87ec965..a191f99 100644 --- a/man/DNAbin.Rd +++ b/man/DNAbin.Rd @@ -19,13 +19,14 @@ quiet = FALSE) \method{[}{DNAbin}(x, i, j, drop = TRUE) \method{as.matrix}{DNAbin}(x, \dots) +\method{c}{DNAbin}(\dots, recursive = FALSE) } \arguments{ \item{x, object}{an object of class \code{"DNAbin"}.} \item{\dots}{either further arguments to be passed to or from other methods in the case of \code{print}, \code{summary}, and \code{as.matrix}, or a series of objects of class \code{"DNAbin"} in - the case of \code{rbind} and \code{cbind}.} + the case of \code{rbind}, \code{cbind}, and \code{c}.} \item{printlen}{the number of labels to print (6 by default).} \item{digits}{the number of digits to print (3 by default).} \item{check.names}{a logical specifying whether to check the rownames @@ -41,6 +42,7 @@ standard R objects).} \item{drop}{logical; if \code{TRUE} (the default), the returned object is of the lowest possible dimension.} + \item{recursive}{for compatibility with the generic (unused).} } \details{ These are all `methods' of generic functions which are here applied to