Site icon R-bloggers

ThinkToStartR package

[This article was first published on julianhi's Blog » R Tutorials, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

***ALPHA***

I just started to work on my new package for this blog. This R package will include the code of all my tutorials and will make it accessible with easy function calls.

Install

To install the ALPHA version of the package open up R and use:


require(devtools) #install if necessary (install.packages("devtools")

dev_mode(on=T)

install_github("ThinkToStartR",username="JulianHill")

Usage

In this first ALPHA version the package just includes the functions for the Twitter authentication and for creating the sentiment cloud I described here.

You can call the functions with the ThinkToStart function:


ThinkToStart(FUNCTIONNAME, ... additional parameters)




library(ThinkToStart)
ThinkToStart("TwitterAuth",api_key="yourAPIKEY",api_secret="yourAPISECRET")

Now you can create a sentiment cloud with:


ThinkToStart("SentimentCloud","iphone",30,"YOUR DATUMBOX API KEY")


To leave a comment for the author, please follow the link and comment on their blog: julianhi's Blog » R Tutorials.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.