powered by
Converts an alignment into a matrix of characters
# S3 method for alignment as.matrix(x, ...)
A matrix of characters.
an object of the class alignment.
additional arguments to be passed to or from methods.
J.R. Lobry
read.alignment
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