R/NCBI.wrap.R

NCBI.wrap <- function(x, BOOLEAN = "OR", field = "all"){
  x <- paste(x, "[xxx]", sep = "")
  x <- paste(x, collapse = paste(rep(" ", 2), collapse = BOOLEAN))
  x <- paste("(", x, ")", sep = "")
  xx <- vector()
  for (i in field){
    xx <- c(xx, gsub("xxx", i, x))
  }
  xx
}

Try the megaptera package in your browser

Any scripts or data that you put into this service are public.

megaptera documentation built on Jan. 15, 2017, 11:19 p.m.