Monthly Archives: October 2012

How to upgrade R in Ubuntu 12.04

October 4, 2012
By

Open your sources.list file in geditsudo gedit /etc/apt/sources.listand add the following line:deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ precise/Note that you don't have to use that mirror. You may use any mirror from the list here : http://cran.r-project.org/mirrors.htmlAdd the secure APT key to your system with one commandsudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9Update your sources and upgrade your installationsudo apt-get update...

Read more »

Permanent Portfolio – Simple Tools

October 4, 2012
By
Permanent Portfolio – Simple Tools

I have previously described and back-tested the Permanent Portfolio strategy based on the series of posts at the GestaltU blog. Today I want to show how we can improve the Permanent Portfolio strategy perfromance using following simple tools: Volatility targeting Risk allocation Tactical market filter First, let’s load the historical prices for the stocks(SPY), gold(GLD),

Read more »

RcppArmadillo 0.3.4.3

October 4, 2012
By

Another bug-fix release of Armadillo, now at version 3.4.3 whike the 3.4.* stabilizes, and with it a version 0.3.4.3 of RcppArmadillo, our wrapper for R and Armadillo. The new version is already on CRAN as of earlier today. Once again no R level or i...

Read more »

RProtoBuf 0.2.6

October 4, 2012
By

Release 0.2.6 of RProtoBuf arrived on CRAN earlier this morning. RProtoBuf provides GNU R bindings for the Google Protobuf data encoding library used and released by Google.This release was once more driven largely by Murray whom we have now add...

Read more »

its the Gramma an punctuashun wot its’ about, Rgiht?

October 4, 2012
By
its the Gramma an punctuashun wot its’ about, Rgiht?

This is another of those confluence style posts, where a handful of things I’ve read in quick succession seem to phase lock in my mind: (brought to mind in part via @downes a week or so ago: How to Synch 32 Metronomes) The first was a post by Alan Levine on Making Text Work, which

Read more »

nnet2sas() supports centering and scaling

October 4, 2012
By
nnet2sas() supports centering and scaling

nnet2sas() version 1 introduced a way to export a nnet() model trained in R to Base SAS through metaprogramming, and now nnet2sas() version 2 introduces support for variable centering and scaling as implemented in caret::train(). See the link for version … Continue reading →

Read more »

Improving the integration between R and Hadoop: rmr 2.0 released

October 4, 2012
By

The RHadoop project, the open-source project supported by Revolution Analytics to integrate R and Hadoop, continues to evolve. Now available is version 2 of the rmr package, which makes it possible for R programmers to write map-reduce tasks in the R language, and have them run within the Hadoop cluster. This update is the "simplest and fastest rmr yet",...

Read more »

Making a hive plot of HIV transmission network — tutorial

October 4, 2012
By
Making a hive plot of HIV transmission network — tutorial

Hiveplots are the über-cool graph visualization created by the prolific Martin Krzywinski and ported to R by the equally talented Bryan Hanson. Martin has created a network visualization tool which displays the underlying structure of a network and ends the … Continue reading →

Read more »

rGtrends 0.01

October 4, 2012
By
rGtrends 0.01

I’m happy to announce that I’ve finally finished my rGtrends package, an interface for the unofficial python Google trends API. It’s a simple function that will allow you to search Google Trends from within R. I haven’t really come up with how this is really relevant to ecology, but it is pretty interesting from a social perspective. For instance you...

Read more »

Adding Measures of Central Tendency to Histograms in R

October 4, 2012
By
Adding Measures of Central Tendency to Histograms in R

Building on the basic histogram with a density plot, we can add measures of central tendency (in this case, mean and median) and a legend.Like last time, we'll use the beaver data from the datasets package.hist(beaver1$temp, # histogram col =...

Read more »