backward | R Documentation |
Given a bracket notation for RNA secondary structure and an index of a ")" bracket type the backward function will find the "(" bracket that closes the ")" at the given index.
backward(stc, i)
stc |
Array of brackets and dots.
|
i |
index giving the position of a bracket |
returns the index of the bracket that closes the bracket at the given index
JP Bida
a=unlist(strsplit("(((...)))...((..))",""))
ind=backward(a,7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.