Blog Archives

Analyze Gold Demand and Investments using R

June 29, 2010
By
Analyze Gold Demand and Investments using R

After the recent foray into stock analysis using quantmod, I thought it worthwhile to mention that the library can be used to analyze a wide variety of investments, including precious metals.  It is also worthwhile to mention that there are other ...

Read more »

Analyze Twitter Data Using R

June 28, 2010
By
Analyze Twitter Data Using R

Twitter data available through its API provides a wealth of real time information.  This article demonstrates a graph of user relationships and an analysis of tweets returned in a search using R.  Keep in mind, Twitter has announced that basi...

Read more »

Stock Analysis using R

June 26, 2010
By
Stock Analysis using R

Want to do some quick, in depth technical analysis of Apple stock price using R? Theres a package for that!The Quantmod package allows you to develop, testing, and deploy of statistically based trading models.  It provides the infrastructure for d...

Read more »

World Bank API R package available!

June 23, 2010
By
World Bank API R package available!

In previous posts I demonstrated R plots created using World Bank Data through their API.  The following is a much nicer example of what is possible.  Many thanks to Vincent Arel-Bundock for sharing his work to make the World Bank D...

Read more »

R Layout command.

June 21, 2010
By
R Layout command.

In the previous post I created a chart but could not figure out to fit the legend in the chart area. Peter Carl pointed me to the layout command which partitions the display area and allowed the the legend to be included. Source code to produce the c...

Read more »

Occupational Wage Comparison Plotted in R

June 17, 2010
By
Occupational Wage Comparison Plotted in R

Ever have conversations with your kids about what they are going to do with their life? Still trying to figure out what you are going to do with yours?Best to not starve...The chart above represents the percentage of each occupation that earn a given h...

Read more »

Chart the U.S. Gross National Product with the Federal Reserve API

June 17, 2010
By
Chart the U.S. Gross National Product with the Federal Reserve API

The Federal Reserve of St. Louis has an amazing amount of economic data available through their API. You need to apply for an API key, and once you have been approved you include your API key as URL parameter to access your data. api_key='YOUR API KE...

Read more »

Installing Ruby on Linux as a User other than root

June 17, 2010
By
Installing Ruby on Linux as a User other than root

Ruby is best known as the language behind the rails web application framework. However, it is a very flexible general purpose language that can be used for tasks of direct interest to R Developers (parsing files, interacting with databases, processing...

Read more »

Calling Ruby, Perl or Python from R

June 16, 2010
By
Calling Ruby, Perl or Python from R

If you want to interact with other programming languages from R, there are various packages and bindings available. These packages provide a pretty high degree of integration between the langages and allow you to pass objects back and forth seemlessl...

Read more »

Date and Time in R

June 15, 2010
By
Date and Time in R

The following are a few date and time functions that I needed to figure out early on when working with R.We will start when we are... the current system date.Sys.Date()Notice that this function returns a Date object.class(Date)A string in this format i...

Read more »