This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```{r, echo=FALSE} | |
knitr::opts_knit$set(upload.fun = knitr::imgur_upload, base.url = NULL) | |
``` | |
# and now, all animals and with nested taxonomic ranks | |
So, a few people liked [this example](https://gist.github.com/dwinter/8d7bde0579daf7466508) | |
of using `rentrez` to investigate the taxonomic distribution of sequences in | |
Genbank. I though it might be fun to extend it a little. Specifically: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#N.B. On *ubuntu RCurl may not install for you off the bat. If so read: http://www.omegahat.org/RCurl/FAQ.html & sudo apt-get install libcurl4-openssl-dev | |
install.packages(c("RCurl","twitteR","wordcloud","tm","stringr")) | |
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) |