## load the mapping
data(c5.go.mapping)
## look at the object
str(c5.go.mapping)
## create go term vector
terms <- c("CHROMATIN_REMODELING_COMPLEX",
"RNA_POLYMERASE_COMPLEX",
"CYTOKINESIS","CELL_RECOGNITION")
id <- sapply(terms,function(x)c5.go.mapping[
match(x,c5.go.mapping[,1]),2])
id
Run the code above in your browser using DataLab