X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=man%2FDNAbin.Rd;h=18d112a81b086c1664e4427d9f985daac0039246;hb=821974300c3d4c88584832e3f4b2c99ed56601cb;hp=1b0ad705bccbc7c3a31da72528d462719bec7a62;hpb=dfabbb4721bc499ee9e5ee9aadcfd59ff3d4f223;p=ape.git diff --git a/man/DNAbin.Rd b/man/DNAbin.Rd index 1b0ad70..18d112a 100644 --- a/man/DNAbin.Rd +++ b/man/DNAbin.Rd @@ -6,6 +6,7 @@ \alias{cbind.DNAbin} \alias{as.matrix.DNAbin} \alias{c.DNAbin} +\alias{as.list.DNAbin} \alias{labels.DNAbin} \title{Manipulate DNA Sequences in Bit-Level Format} \description{ @@ -20,6 +21,7 @@ \method{[}{DNAbin}(x, i, j, drop = FALSE) \method{as.matrix}{DNAbin}(x, \dots) \method{c}{DNAbin}(\dots, recursive = FALSE) +\method{as.list}{DNAbin}(x, \dots) \method{labels}{DNAbin}(object, \dots) } \arguments{ @@ -70,7 +72,7 @@ \code{as.matrix} may be used to convert DNA sequences (of the same length) stored in a list into a matrix while keeping the names and the - class. + class. \code{as.list} does the reverse operation. } \value{ an object of class \code{"DNAbin"} in the case of \code{rbind}, @@ -91,9 +93,8 @@ \examples{ data(woodmouse) woodmouse -summary(woodmouse) -summary(woodmouse, 15, 6) -summary(woodmouse[1:5, 1:300], 15, 6) +print(woodmouse, 15, 6) +print(woodmouse[1:5, 1:300], 15, 6) ### Just to show how distances could be influenced by sampling: dist.dna(woodmouse[1:2, ]) dist.dna(woodmouse[1:3, ])