Learn R Programming

strataG (version 1.0.3)

mega: Read and Write MEGA

Description

Read and write MEGA formatted files.

Usage

read.mega(file)

write.mega(g, file = NULL, title = NULL, line.width = 60, locus = 1)

Arguments

file
a MEGA-formatted file of sequences.
g
a gtypes object.
title
title for data in file.
line.width
width of sequence lines.
locus
number or name of locus to write.

Value

  • for read.mega, a list of: ll{ title title of MEGA file. dna.seq a list of DNA sequences. }