Skip to content

Instantly share code, notes, and snippets.

Working from home

Ross Mounce rossmounce

Working from home
View GitHub Profile
View nested_taxa.Rmd
```{r, echo=FALSE}
knitr::opts_knit$set( = knitr::imgur_upload, base.url = NULL)
# and now, all animals and with nested taxonomic ranks
So, a few people liked [this example](
of using `rentrez` to investigate the taxonomic distribution of sequences in
Genbank. I though it might be fun to extend it a little. Specifically:
View wordles.r
#N.B. On *ubuntu RCurl may not install for you off the bat. If so read: & sudo apt-get install libcurl4-openssl-dev
library(twitteR); library(wordcloud); library(tm); library(stringr);
# Search for #mooc tweets
mooctweets <- searchTwitter("#mooc", n=2000)
length(mooctweets) # ends up with 713 as of 03-Jan-13 at 15:42 London time
# make into a data.frame
mooctweets_df <- twListToDF(mooctweets)