## add.mat example ########
dir <- system.file("extdata", package = "phylotools")
setwd(dir)
rbcla <- read.phylip("rbcla.phy")
matk <- read.phylip("matK.phy" )
rbdat <- phy2dat(rbcla)
matdat <- phy2dat(matk)
add.mat(rbdat, matdat)
Run the code above in your browser using DataLab