as.matrix.alignment: as.matrix.alignment

View source: R/as.matrix.alignment.R

as.matrix.alignmentR Documentation

as.matrix.alignment

Description

Converts an alignment into a matrix of characters

Usage

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

Arguments

x

an object of the class alignment.

...

additional arguments to be passed to or from methods.

Value

A matrix of characters.

Author(s)

J.R. Lobry

See Also

read.alignment

Examples

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

seqinr documentation built on May 29, 2024, 6:36 a.m.