checkDNA: Check a DNA alignment for missing data

Description Usage Arguments Details Value Author(s) Examples

Description

This functions counts the number of bases in an alignment that are composed of missing data.

Usage

1
checkDNA(DNAbin, gapsAsMissing = TRUE)

Arguments

DNAbin

A DNA alignment of class ‘DNAbin’.

gapsAsMissing

Logical. Should gaps (coded as '-') be considered missing bases? Default of TRUE.

Details

This function considers bases coded as '?' and 'N' as missing data. By default, gaps (coded as '-') are also considered missing.

Value

A numeric vector giving the number of missing bases in each sequence of the alignment.

Author(s)

Samuel Brown <s_d_j_brown@hotmail.com>

Examples

1
2
3

spider documentation built on May 2, 2019, 7:31 a.m.