Skip to content

Instantly share code, notes, and snippets.

@dwinter
Created March 18, 2013 04:48
Show Gist options
  • Save dwinter/5185155 to your computer and use it in GitHub Desktop.
Save dwinter/5185155 to your computer and use it in GitHub Desktop.
'NA' is a gene symbol, which can cause problems
chars <- c("ABC", NA, "DEF")
(urls <- paste("web-api&id=", chars, sep=""))
## [1] "my-fav-web-api/id=ABC" "my-fav-web-api/id=NA" "my-fav-web-api/id=DEF"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment