Description Usage Arguments Value Author(s) Examples
Extract value from tag-value formatted attributes
1 | tagval(x, tag)
|
x |
A vector of character strings in tag-val format (as described in the GFF 2 standard; ie, "tag1 val1a val1b; tag2 val2 ; ...", or in the GFF 3 format "tag1=val1a,val1b; tag2=val2; ..."), where vals are in quotes if they are strings. |
tag |
The tag whose values are to be extracted. |
If there is at most one value per tag for each element of x, a character vector of the same length as x will be returned, containing the value for each element, or NA if the tag does not exist for that element. If some elements have multiple values, then the return value will be a list with the same length as x, each element being a character vector containing the values for the corresponding element of x (or NA for no value).
Melissa J. Hubisz
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.