Monthly Archives: June 2011

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 »

Digitizing data from old plots using ‘digitize’

June 23, 2011
By

The June 2011 issue of The R Journal contains an article on the R package digitize (link to pdf) by Timothée Poisot. This might prove to be a handy tool if you occasionally find yourself needing to retrieve data points from figures in old articles for...

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 few softwares for … Continue reading →

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 … Continue reading →

Read more »

New Issue in the R Journal

June 23, 2011
By

Today, the first issue of the third volume of The R Journal was published: http://journal.r-project.org/current.html. The R Journal intends to reach a wide audience and is one of the main communication media in the R community. Usually, two issues are published each year. This issue presents 10 interesting research articles especially introducing to new R

Read more »

The R Journal Vol. 3/1 went online

June 23, 2011
By

Dear All, The first issue of the third volume of The R Journal is now available at http://journal.r-project.org/current.html. Below are direct links to (most of) the articles: Volume 3/1, June 2011 Download complete issue Refereed articles may be downloaded individually using the links below. Table of Contents Editorial 3   Contributed Research Articles   testthat:...

Read more »

New CRAN package for R package development: devtools

June 23, 2011
By

Yesterday, Hadley Wickham released his new package “devtools” at the CRAN repository. A great R package which supports the development process of R packages. R Packages are the fundamental unit of reproducible R code. The development of R packages is a complex topic and requires several additional tasks next to R programming. For example, you

Read more »

iEvoBio 2011 Synopsis

June 22, 2011
By
iEvoBio 2011 Synopsis

We just wrapped up the 2011 iEvoBio meeting. It was awesome! If you didn't go this year or last year, definitely think about going next year.Here is a list of the cool projects that were discussed at the meeting (apologies if I left some out):Vistrails...

Read more »