read.fasta(file = NULL)
read.phy
, read.nxs
for importing data from other data types.
### read.fasta() example
###
cat(
">No305",
"NTTCGAAAAACACACCCACTACTAAAANTTATCAGTCACT",
file = "dna1.fas", sep = "\n")
sequences <- read.fasta("dna1.fas")
unlink("dna1.fas")
Run the code above in your browser using DataLab