read.nexus.data: Read Character Data In NEXUS Format

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

This function reads a file with sequences in the NEXUS format.

Usage

1

Arguments

file

a file name specified by either a variable of mode character, or a double-quoted string.

Details

This parser tries to read data from a file written in a restricted NEXUS format (see examples below).

Please see files ‘data.nex’ and ‘taxacharacters.nex’ for examples of formats that will work.

Some noticeable exceptions from the NEXUS standard (non-exhaustive list):

Value

A list of sequences each made of a single vector of mode character where each element is a (phylogenetic) character state.

Author(s)

Johan Nylander nylander@scs.fsu.edu

References

Maddison, D. R., Swofford, D. L. and Maddison, W. P. (1997) NEXUS: an extensible file format for systematic information. Systematic Biology, 46, 590–621.

See Also

read.nexus, write.nexus, write.nexus.data

Examples

1
2
## Use read.nexus.data to read a file in NEXUS format into object x
## Not run: x <- read.nexus.data("file.nex")

gjuggler/ape documentation built on May 17, 2019, 6:03 a.m.