Convert case of a bstring sequence.

bstr_to_upper(bstrobj)

bstr_to_lower(bstrobj)

bstr_switch_case(bstrobj)

Arguments

bstrobj

bstr class object or character vector

Examples

temp <- dstr_rand_seq(1, 10, "[atgcATGC]", seed = 1) c( temp, upper = bstr_to_upper(temp), lower = bstr_to_lower(temp), switch = bstr_switch_case(temp) )
#> class: bstr,character #> number of sequences: 4 #> [1] no name 1 : GGatCttccA 10 #> [2] upper.no name 1 : GGATCTTCCA 10 #> [3] lower.no name 1 : ggatcttcca 10 #> [4] switch.no name 1 : ggATcTTCCa 10