baseFreq
computes the frequencies (absolute or relative) of the states
from a sample of sequences.
glance
computes some useful information about the alignment.
composition\_test
computes a
baseFreq(obj, freq = FALSE, all = FALSE, drop.unused.levels = FALSE)# S3 method for phyDat
glance(x, ...)
composition_test(obj)
baseFreq
returns a named vector and glance
a one row
data.frame
.
as object of class phyDat
logical, if 'TRUE', frequencies or counts are returned otherwise proportions
all a logical; if all = TRUE, all counts of bases, ambiguous codes, missing data, and alignment gaps are returned as defined in the contrast.
logical, drop unused levels
further arguments passed to or from other methods.
Klaus Schliep
phyDat, base.freq, glance
data(Laurasiatherian)
data(chloroplast)
# base frequencies
baseFreq(Laurasiatherian)
baseFreq(Laurasiatherian, all=TRUE)
baseFreq(Laurasiatherian, freq=TRUE)
baseFreq(chloroplast)
glance(Laurasiatherian)
glance(chloroplast)
composition_test(Laurasiatherian)[1:10,]
Run the code above in your browser using DataLab