Which functions in R base call internal code?

September 14, 2010
By
Which functions in R base call internal code?

In a recent question on Stack Overflow about speeding up group-by operations, Marek wondered which functions called .Internal code (and consequently were fast). I was surprised to see that there appears to be no built-in way to check whether or not this is the case (though is.primitive is available for primitive functions). Writing such a function is quite straight forward....

Read more »

Some useful bar plots using R

September 14, 2010
By
Some useful bar plots using R

In this article I am trying to show how to produce bar plots using R. Many of my friends think SPSS is the most useful software for producing plots and they keep using it (some of them even use Excel!). My goal is to show that R can do every type of graphs that other commercial softwares can do....

Read more »

Some useful bar plots using R

September 14, 2010
By
Some useful bar plots using R

In this article I am trying to show how to produce bar plots using R. Many of my friends think SPSS is the most useful software for producing plots and they keep using it (some of them even use Excel!). My goal is to show that R can do every type of g...

Read more »

Example 8.5: bubble plots part 3

September 14, 2010
By
Example 8.5: bubble plots part 3

An anonymous commenter expressed a desire to see how one might use SAS to draw a bubble plot with bubbles in three colors, corresponding to a fourth variable in the data set. (x, y, z for bubble size, and the category variable.) In a previous entries...

Read more »

A Not Quite Random Number Generator (NQRNG)

September 13, 2010
By
A Not Quite Random Number Generator (NQRNG)

I connected the instrumentation amplifier described in an earlier post to a piezoelectric transducer (buzzer) and made recordings at 5000 gain. The plot below shows 1000 such measurements over 1.0 seconds. There is a 4.0 second (at 1000Hz) sample of the data here piezo.csv. There is a clear sinusoidal signal in these data of about

Read more »

10w2170, Banff [2]

September 13, 2010
By
10w2170, Banff [2]

Over the two days of the Hierarchical Bayesian Methods in Ecology workshop, we managed to cover normal models, testing, regression, Gibbs sampling, generalised linear models, Metropolis-Hastings algorithms and of course a fair dose of hierarchical modelling. At the end of the Saturday marathon session, we spent one and half discussing some models studied by the

Read more »

R 2.12.0 scheduled for October 15

September 13, 2010
By

Just announced: the next release of R, version 2.12.0, will be released on October 15 (in source code form; binaries usually follow the same day or soon thereafter). Looking at the NEWS file, this release features several dozen tweaks and bug fixes to...

Read more »

the spatial concentration of Green support

September 13, 2010
By
the spatial concentration of Green support

I did some poking and prodding of the polling place data, looking at the way Green support is highly concentrated in the inner-capital cities (and in Melbourne and Sydney, in particular). There are a few interesting exceptions that will make sense to...

Read more »

Ross Ihaka to R: Drop Dead

September 13, 2010
By

Christian Robert posts these thoughts: I have been worried for some time that R isn't going to provide the base that we're going to need for statistical computation in the future. (It may well be that the future...

Read more »

RcppArmadillo 0.2.6

September 13, 2010
By

Now that Rcpp got updated to 0.8.6, we have an updated RcppArmadillo release containing mostly updates to Conrad's Armadillo version 0.9.70 as well as some more templated sugar magic. RcppArmadillo makes it easy to write highly efficient and highly rea...

Read more »

RcppArmadillo 0.2.6

September 13, 2010
By

Now that Rcpp got updated to 0.8.6, we have an updated RcppArmadillo release containing mostly updates to Conrad's Armadillo version 0.9.70 as well as some more templated sugar magic. RcppArmadillo makes it easy to write highly efficient and highly ...

Read more »

Handling .Z files

September 13, 2010
By
Handling .Z files

A while back Steve Mcintyre was looking for a way to handle .Z files in R Ron Broberg over at the whiteboard had an approach that steve adopted both for untar and for uncompressing .Z files.  While the approach is slick, its somewhat of a hack. Nothing wrong with that, but I wanted something a

Read more »

One Day Cricket Champions by Decade

September 12, 2010
By
One Day Cricket Champions by Decade

(This article was first published on Enterprise Software Doesn't Have to Suck, and kindly contributed to R-bloggers) To leave a comment for the author, please follow the link and comment on his blog: Enterprise Software Doesn't Have to Suck. R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming...

Read more »

“simply start over and build something better”

September 12, 2010
By
“simply start over and build something better”

The post on the shortcomings of R has attracted a huge number of readers and Ross Ihaka has now posted a detailed comment that is fairly pessimistic… Given the directions drafted in this comment from the father of R (along with Robert Gentleman), I once again re-post this comment as a main entry to advertise

Read more »

Missing Data in R

September 12, 2010
By
Missing Data in R

Probably all of us have met the issue of handling missing data, from the basic portfolio correlation matrix estimation, to advanced multiple factor analysis, how to impute missing data remains a hot topic. Missing data are unavoidable, and more encompassing than the ubiquitous association of the term, irgoring missing data will generally lead to biased estimates. The...

Read more »

R on the iPhone

September 12, 2010
By
R on the iPhone

iPhone users who have jailbroken their phone have been able to compile R for a while now since they have access to the command line via MobileTerminal.  However, I just recently found out that a package is now up on Cydia to ease installation. So I fired up my iPhone 4 and installed R on

Read more »

Chicago Half Marathon 2010

September 12, 2010
By

Second Sunday in September -- time for the annual Chicago Half Marathon now in its fourteenth edition (and I have been running it in 2003, 2004, 2005, 2006, 2007, 2008 and 2009 making this and the JPM Chase Corporate Challenge the races I've run ...

Read more »

Preventing argument use in R

September 12, 2010
By
Preventing argument use in R

It sounds silly, but sometimes you don't want to let people use some arguments of a function. The canonical example is write.csv. The function is effectively a wrapper to write.table, but using "," as the separator and "." as the decimal.

Read more »

A (fast!) null model of bipartite networks

September 12, 2010
By
A (fast!) null model of bipartite networks

One of the challenges for ecologists working with trophic/interaction networks is to understand their organization. One of the possible approaches is to compare them across a random model, with more or less constraints, in order to estimate the departure from randomness. To this effect, null models have been developed. The basic idea behind a null

Read more »

India Pakistan Cricket over the years

September 11, 2010
By
India Pakistan Cricket over the years

Note: Excludes abandoned, canceled and no results games.

Read more »

SyntaxHighlighter Brush for the R Language

September 11, 2010
By

al Galili requested in the R-help mailing list for a SyntaxHighlighter brush for the R language, so that WordPress users can highlight their R code easily. I promised to contribute a few minutes on this task, and here is the result: /** * Author: Yihui Xie * URL: http://yihui.name/en/2010/09/syntaxhighlighter-brush-for-the-r-language * License: GPL-2 | GPL-3 */

Read more »

RProtoBuf 0.2,0

September 11, 2010
By

A brand new and shiny release of RProtoBuf, now at version 0.2.0, arrived on CRAN earlier today. RProtoBuf provides GNU R bindings for the Google Protobuf data encoding library used and release by Google and others. This is only the second release aft...

Read more »

RProtoBuf 0.2,0

September 11, 2010
By

A brand new and shiny release of RProtoBuf, now at version 0.2.0, arrived on CRAN earlier today. RProtoBuf provides GNU R bindings for the Google Protobuf data encoding library used and release by Google and others. This is only the second releas...

Read more »

Raster “Cover” function

September 11, 2010
By
Raster “Cover” function

The last bits of raster are coming together and everything is working so we are getting really close here. Today i will cover the raster function ‘cover’ which robert has just updated to handle a brick function. Lets review the situation with a toy example: First, we read in the Land data into a Brick.

Read more »

mapping the Australian election (2010 edition)

September 11, 2010
By
mapping the Australian election (2010 edition)

The AEC makes this reasonably easy, as do the authors of some very helpful R packages, the good people at Google Maps etc. Full description here (PDF); entire collection here; a sample here, showing Green 1st preferences, by polling places across metro...

Read more »

EmEditor Professional as an R script editor

September 11, 2010
By
EmEditor Professional as an R script editor

R is not supported "out of the box" by EmEditor, so here's a few tips I've found for using it as a great editor for R.Code Syntax highlighting Executing R scripts and capturing outputUse ctags symbols to navigate files.If you create packages for CRAN or like neat code, you might like to use a macro to tidy it...

Read more »

Using the {plyr} (1.2) package parallel processing backend with windows

September 11, 2010
By

Hadley Wickham has just announced the release of a new R package “reshape2” which is (as Hadley wrote) “a reboot of the reshape package”. Alongside, Hadley announced the release of plyr 1.2.1 (now faster and with support to parallel computation!). Both releases are exciting due to a significant speed increase they have now gained. Yet in case of the new plyr...

Read more »

10w2170, Banff

September 11, 2010
By
10w2170, Banff

Yesterday night, we started the  Hierarchical Bayesian Methods in Ecology workshop by trading stories. Everyone involved in the programme discussed his/her favourite dataset and corresponding expectations from the course. I found the exchange most interesting, like the one we had two years ago in Gran Paradiso, because of the diversity of approaches to Statistics reflected

Read more »

Billy Bragg

September 10, 2010
By

In the spur of the moment, I cycled over to Dominican, one of the two small colleges in town, to see if I could snag a remaining ticket to see Billy Bragg perform. Turned out I could, and it became a nice evening out. Darren Hanlon started up the ev...

Read more »