File: as.matrix.alignment.Rd

package info (click to toggle)
r-cran-seqinr 3.4-5-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,876 kB
  • sloc: ansic: 1,987; makefile: 14
file content (26 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\name{as.matrix.alignment}
\alias{as.matrix.alignment}

\title{as.matrix.alignment}
\description{
Converts an alignment into a matrix of characters
}
\usage{
\method{as.matrix}{alignment}(x, ...)
}
\arguments{
  \item{x}{ an object of the class alignment.}
  \item{...}{additional arguments to be passed to or from methods.}
}
\value{
  A matrix of characters.
}
\author{J.R. Lobry} 
\seealso{
  \code{\link{read.alignment}}
}
\examples{
  phylip <- read.alignment(file = system.file("sequences/test.phylip",
   package = "seqinr"), format = "phylip")
  as.matrix(phylip)
}