Connecting to a MongoDB database from R using the C API for MongoDB

September 24, 2010

(This article was first published on YOKOFAKUN, and kindly contributed to R-bloggers)

Today, Neil posted an article titled" Connecting to a MongoDB database from R using Java". In the current post, I'll show how to use the C API for MongoDB to fetch some MongoDB data from R. The code will be somehow similar to my previous post "A stateful C function for R: parsing Fasta sequences".OK, First, let's add a few values in mongo:for(i=1;i> 20;++i){_id:"rs"+i,name:

To leave a comment for the author, please follow the link and comment on his blog: YOKOFAKUN. offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.