seqinr (version 4.2-36)

as.matrix.alignment: as.matrix.alignment

Description

Converts an alignment into a matrix of characters

Usage

# S3 method for alignment
as.matrix(x, ...)

Value

A matrix of characters.

Arguments

x

an object of the class alignment.

...

additional arguments to be passed to or from methods.

Author

J.R. Lobry

See Also

read.alignment

Examples

Run this code
  phylip <- read.alignment(file = system.file("sequences/test.phylip",
   package = "seqinr"), format = "phylip")
  as.matrix(phylip)

Run the code above in your browser using DataLab