powered by
Count the number of character in sequences
seq_nchar(x, gaps = TRUE)
An integer vector giving the size of each sequence of x.
x
a DNA, RNA or AA vector.
if FALSE gaps are ignored.
FALSE
Other op-misc: seq_disambiguate_IUPAC(), seq_nseq(), seq_spellout(), seq_stat_gc(), seq_stat_prop()
seq_disambiguate_IUPAC()
seq_nseq()
seq_spellout()
seq_stat_gc()
seq_stat_prop()
x <- dna(c("ATGCAGA", "GGR-----","TTGCCTAGKTGAACC")) seq_nchar(x) seq_nchar(x, gaps = FALSE)
Run the code above in your browser using DataLab