Description Usage Arguments Author(s) See Also Examples
View source: R/read.multiGenes.R
The function reads two o more dna files (alignments)
1 |
files |
Vecotr with the name of the files to read. The files must be in the same working directory. |
format |
The format of the files. Three options: 1. nexus, 2. phylip or 3. fasta |
names |
(optional), a vector with same lenght as files. This represent an specific name for each file. If missin, the function will use the files vector as names. |
Omar Daniel Leon-Alvarado
1 2 3 4 5 6 7 8 9 10 11 | library(alignTools)
input <- c("files1.nex","file2.nex","file3.nex")
# In this example, names will be the same as input
data <- read.multiGenes(files=input, format="nexus")
# In this exmaple, names will be "id1","id2","id3".
data <- read.multiGenes(files=input, format="nexus",names=c("id1","id2","id3"))
str(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.