getAttributeField {tilingArray}R Documentation

Extract the value of a certain field out of a character vector such as in the "attributes" column of a GFF table.

Description

Extract the value of a certain field out of a character vector such as in the "attributes" column of a GFF table.

Usage

getAttributeField(x, field, attrsep=";") 

Arguments

x character vector.
field character vector of length 1, containing the field name.
attrsep character vector of length 1, containing the separator name.

Details

See example.

Value

Character vector.

Author(s)

W. Huber <huber@ebi.ac.uk>

Examples

  acol = c("ID=46891;Name=TEL01L-TR;Note=Bla",
   "ID=46892;Name=TEL01L;Note=Di",
   "ID=46893;Name=TEL01L-XR;Note=Bla")

  getAttributeField(acol, "Name")
  getAttributeField(acol, "ID")

[Package tilingArray version 1.2.0 Index]