Monthly Archives: June 2011

Installing Multiple Version of R in parallel on the same machine – Mac OS X

June 24, 2011
By
Installing Multiple Version of R in parallel on the same machine – Mac OS X

In a few days I'm going to attend a Bioconductor Course; I was requested to install on my MacBook (Mac OS X 10.5.8) a developer version of R (plus ad hoc Bioconductor packages). In order to keep my old R installation ((2.13) along side the ne...

Read more »

Talking The R Journal latest release

June 24, 2011
By
Talking The R Journal latest release

Volume 3/1 of The R Journal has been released. It of course has articles about using R.  In addition it has a feature that I highly support.  In preparation for the UseR! Conference 2011 August 16-18 in Coventry there are two Help Desk articles on making a good technical presentation. Technical presentation Rob Hyndman writes … Continue reading...

Read more »

Multiple plots in R: lesson zero

June 24, 2011
By
Multiple plots in R: lesson zero

Today, in one of my more productive days, I managed to create a sleek R script that plotted several histograms in a lattice, allowing for easy identification of the underlying trend. Although the majority of the time taken consisted of collecting the data and making various adjustments, it took a not inconsiderable amount of work to write the...

Read more »

msg <- "Hello World!"; print(msg)

June 23, 2011
By
msg <- "Hello World!"; print(msg)

Introduction My mom always told me to be polite so I think I should introduce myself first. I’m a 20+ years old Finnish university student studying computer science (2nd year starting) and statistics (first year coming) and mostly interested in &...

Read more »

Table hockey and statistics, part 1

June 23, 2011
By
Table hockey and statistics, part 1

Two hobbys combined I’ve been playing table hockey for little over 8 years now and since the very beginning I’ve been interested in statistics and different software we use while organising tournaments and seasons. I’ve been writing f...

Read more »

The R Journal, Volume 3/1

June 23, 2011
By

The most recent issue of The R Journal was recently published.  If you're not a regular reader, you should at least check out the following three contributed articles (listed in order of appearance).Rmetrics - timeDate PackageDifferential Evoluti...

Read more »

Crashed!!

June 23, 2011
By

This crashes R (sometimes): 1 2 f = function( 3 a = {x <- y <- z <- w <- t <- u <- 7} 4 ) environment() 5 6 for (i in 1:1000) { ...

Read more »

Speed up R "for" loops 50x with Rcpp

June 23, 2011
By

Christian Gunning has a great example of using Rcpp to speed up a for loop in R. For his agent-based simulation, Christian needed to repeatedly call the rbinom function in a loop. (Unfortunately, you can't pass a vector to the size argument, which would have solved the problem.) Using the aaply function (from the plyr package) took about 38...

Read more »

Inheriting in Items

June 23, 2011
By

What if we want to extend the behavior of one item with another? Or, to put it another way, what if we want one item to be able to grab the functionality of another? It turns out we can (almost) get this behavior without modifying the item constructor at all. Here's how you do the grabbing:

No, steal *this* blog!

June 23, 2011
By

Should the world of R Wikibooks require a precis on truncated distributions, marijuana prices, or an obtusely coded method to visualize orthogonal least squares (spoiler alert: dot products are easier!), I’m your man! I hereby release all of the content and code in the R stuff category under the cc-by-sa copyright license. You can do…

Read more »

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)