subsetting bstr class object

# S3 method for bstr
[(x, ..., drop = F)

Arguments

x

x

...

...

drop

drop

Examples

(test <- dstr_rand_seq(3, 10, seed = 1))
#> class: dstr,bstr,character #> number of sequences: 3 #> [1] no name 1 : CCGTATTGGA 10 #> [2] no name 2 : AAGCTCGTCT 10 #> [3] no name 3 : TAGACCACTC 10
test[1]
#> class: dstr,bstr,character #> number of sequences: 1 #> [1] no name 1 : CCGTATTGGA 10
test[2:1]
#> class: dstr,bstr,character #> number of sequences: 2 #> [1] no name 2 : AAGCTCGTCT 10 #> [2] no name 1 : CCGTATTGGA 10
test[2] <- "mutated" test
#> class: dstr,bstr,character #> number of sequences: 3 #> [1] no name 1 : CCGTATTGGA 10 #> [2] no name 2 : mutated 7 #> [3] no name 3 : TAGACCACTC 10