ThinkToStartR package

March 23, 2014
By

(This article was first published on julianhi's Blog » R Tutorials, and kindly contributed to R-bloggers)

***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 on topics such as: Data science, Big Data, R jobs, 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.

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)