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 [email protected]

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")

ape documentation built on May 30, 2017, 6:11 a.m.