3 \title{Base frequencies from DNA Sequences}
5 base.freq(x, freq = FALSE)
8 \item{x}{a vector, a matrix, or a list which contains the DNA
10 \item{freq}{a logical specifying whether to return the proportions
11 (the default) or the absolute frequencies (counts).}
14 This function computes the relative frequencies (i.e. proportions) of
15 the four DNA bases (adenine, cytosine, guanine, and thymidine) from a
19 The base frequencies are computed over all sequences in the
20 sample. All missing or unknown sites are discarded from the
24 A numeric vector storing the relative frequencies with names
25 \code{c("a", "c", "g", "t")}.
27 \author{Emmanuel Paradis \email{Emmanuel.Paradis@mpl.ird.fr}}
29 \code{\link{GC.content}}, \code{\link{seg.sites}},
30 \code{\link{nuc.div}}, \code{\link{DNAbin}}