littler 0.1.3

January 5, 2010
By

A new littler release (now at 0.1.3) just went out of the door this evening. littler provides r (pronounced littler), a shebang / scripting / quick eval / pipelining front-end to the the R language and system. This version adds a few minor behind-...

Read more »

littler 0.1.3

January 5, 2010
By

A new littler release (now at 0.1.3) just went out of the door this evening. littler provides r (pronounced littler), a shebang / scripting / quick eval / pipelining front-end to the the R language and system. This version adds a few minor behind-the...

Read more »

littler 0.1.3

January 5, 2010
By

A new littler release (now at 0.1.3) just went out of the door this evening. littler provides r (pronounced littler), a shebang / scripting / quick eval / pipelining front-end to the the R language and system. This version adds a few minor behind-...

Read more »

Typos in Chapter 2

January 5, 2010
By
Typos in Chapter 2

When grading homeworks for my Monte Carlo graduate class, I found that my students had pointed out two typos in the exercises of Chapter 2 of “Introducing Monte Carlo Methods with R”. – In Exercise 2.17, question d. should be “d. Show that the maximum of is attained at .“ – In Exercise 2.21, in item

Read more »

Transitions and transversions in R

January 5, 2010
By
Transitions and transversions in R

A couple of months ago I wrote the following R function to calculate the number of transitions and transversions between DNA sequences in an alignment. The function is fairly slow (an alignment of ~100 sequences, 800 bp in length takes around 30 second...

Read more »

Setting the HTML title tag in SAS ODS (the right way)

January 5, 2010
By
Setting the HTML title tag in SAS ODS (the right way)

In our department and various places on the Intertubes, SAS programmers set the HTML title tag (which sets the title in web browsers and on search engines) in ODS using the headtext option: ods html headtext="<title>My great report</title>" /* wrong! */ file="foo.html"; This may work in some situations, but it’s ugly and wrong. To see

Read more »

Announcing r-ORM: A Pure R Object-Relational Mapper

January 5, 2010
By

My apologies for the long break between posts. Before the end of this week I’ll return to my series of posts on image processing in R. In the intervening time, I’ve finished a piece of code that I’d like to officially release to the public. The code in question is a very minimal object-relational mapper

Read more »

Analyzing a FriendFeed group with Ruby and R

January 5, 2010
By
Analyzing a FriendFeed group with Ruby and R

FriendFeed is a social media service, where groups of people can post interesting information from the Web, and "like" or comment posts from others. Statistical Bioinformatician Neil Saunders is a member of the "Life Scientists" group, and has posted an analysis of the group's activity in 2009 to his blog. He used Ruby and the FriendFeed API to extract...

Read more »

R Journal 1/2

January 5, 2010
By
R Journal 1/2

R Journal 1/2 is out! Grab it from here.

Read more »

R Journal 1/2

January 5, 2010
By
R Journal 1/2

R Journal 1/2 is out! Grab it from here.

Read more »

R: Memory usage statistics by variable

January 4, 2010
By
R: Memory usage statistics by variable

Do you need a way to find out which individual variables in R consume the most memory? # create dummy variables for demonstration x <- 1:1000 y <- 1:10000 z <- 1:100000 # print aggregate memory usage statistics print(paste('R is using', mem...

Read more »

Example 7.20: Simulate categorical data

January 4, 2010
By
Example 7.20: Simulate categorical data

Both SAS and R provide means of simulating categorical data (see section 1.10.4). Alternatively, it is trivial to write code to do this directly. In this entry, we show how to do it once. In a future entry, we'll demonstrate writing a SAS Macro (section A.8.1) and a function in R (section B.5.2) to do it...

Read more »

O’Reilly’s R is a Harpy Eagle

January 4, 2010
By
O’Reilly’s R is a Harpy Eagle

Today marks the hardcopy availability of the first book dedicated to R from O'Reilly, R in a Nutshell. In the familiar O'Reilly style, the cover is adorned with an illustration of an animal, in this case a harpy eagle: The book is written by Joe Adler, a data analyst and the author of Baseball Hacks. In contrast to the...

Read more »

Welcome!

January 4, 2010
By

Welcome to my new blog, Byte Mining! Data is all around us, all the time. It flows in from places you would least expect it, and more times that not, it remains in its original form untouched by human and machine. When data simply flows in and out of our lives, we miss out on the story that it...

Read more »

Soical Network Analysis in R

January 3, 2010
By

Presentation by Drew Conway on August 6, 2009 at the NYC R Statistical Programming Meetup on how to perform basic social network analysis in R using the igraph package.

Read more »

directlabels: Adding direct labels to ggplot2 and lattice plots

January 3, 2010
By
directlabels: Adding direct labels to ggplot2 and lattice plots

Sometimes it is preferable to label data series instead of using a legend. This post demonstrates one way of using labels instead of legend in a ggplot2 plot. > library(ggplot2) > p <- ggplot(dfm, aes(month, value, group = City, colour = City)) + geom_line(size = 1) + opts(legend.position = "none") > p + geom_text(data =

Read more »

Rcpp 0.7.1

January 2, 2010
By

Two weeks after the Rcpp 0.7.0 release, Romain and I are happy to announce release 0.7.1 of Rcpp. It is currently in the incoming section of CRAN and has been accepted into Debian. Mirrors will catch up over the next few days, in the meantime the local page is available for download too. A lot has...

Read more »

Rcpp 0.7.1

January 2, 2010
By

Two weeks after the Rcpp 0.7.0 release, Romain and I are happy to announce release 0.7.1 of Rcpp. It is currently in the incoming section of CRAN and has been accepted into Debian. Mirrors will catch up over the next few days, in the meantime the local...

Read more »

Rcpp 0.7.1

January 2, 2010
By

Two weeks after the Rcpp 0.7.0 release, Romain and I are happy to announce release 0.7.1 of Rcpp. It is currently in the incoming section of CRAN and has been accepted into Debian. Mirrors will catch up over the next few days, in the meantime the local page is available for download too. A lot has...

Read more »

LSPM Examples

January 2, 2010
By
LSPM Examples

I have received several requests for additional LSPM documentation over the past couple days and a couple months ago I promised an introduction to LSPM. In this long-overdue post, I will show how to optimize a Leverage Space Portfolio with the LSPM pa...

Read more »

Arctic Sea Ice Extent Trends With R

January 1, 2010
By
Arctic Sea Ice Extent Trends With R

This post shows how to retrieve on-line Arctic Sea Ice Extent data from the National Snow and Ice Data Center (NSIDC), consolidate the data files, generate a csv file, summarize and plot the data and post it as a Google Docs so that interested readers can download and analyze this data series themselves. Links to

Read more »

Happy New Year with R

December 31, 2009
By

I have to admit that the previous post on Christmas is actually not much fun. Today I received another pResent from Yixuan which is more interesting: Basically the code deals with letter polygons (i.e. glyphs) and plot them with proper projections from 3D to 2D space: ## original code by Yixuan <[email protected]>, with my slight modification h.x =

Read more »

Updates about R-bloggers, a Happy new year, and one request

December 31, 2009
By
Updates about R-bloggers, a Happy new year, and one request

Hello dear reader of R-bloggers, I am excited to inform you that R-bloggers has grown amazingly in the last few weeks. There are now 29 blogs participating and sharing their R related articles and tutorials with the rest of us. I didn’t even know that there where so many bloggers writing about R until now. Until now (according to google analytics,...

Read more »

Because it’s Friday: The inner life of a cell

December 31, 2009
By

Happy New Year, everyone. In celebration of the New Year, enjoy this celebration of the workings of life from Harvard University. More at the link below: 3 Quarks Daily: The inner life of the cell

Read more »

R/Finance 2010, April 16-17 in Chicago

December 31, 2009
By

Today is the last day to submit abstracts for the R/Finance 2010 conference to be held in Chicago on April 16-17. If you're not planning on speaking, but are interested in applications of R in Finance, be sure to add this to your calendar -- last year's conference was an outstanding event. Here's some more information about the conference...

Read more »

R in the NYT

December 30, 2009
By

The statistical package R received a positive overview in the New York Times recently.

Read more »

Brief Analysis of Abdulmutallab (Christmas Day bomber) Web Posting Data

December 30, 2009
By
Brief Analysis of Abdulmutallab (Christmas Day bomber) Web Posting Data

Thanks to Evan Kohlman at the NEFA Foundation for compiling, and Danger Room for publicizing, the data set of all of Farouk Abdulmutallab’s posts to the Islamic Forum on Gawaher.com. Since Evan took the initiative to download and save the raw HTML data, I thought it would be useful to go one step

Read more »

Use plyr instead of _apply() in R

December 30, 2009
By

I've covered plyr once before, showing you how to get means and variances for two quantitative traits across multilocus genotypes. JD Long over at Cerebral Mastication recently posted a nice screencast illustrating how plyr "just works" as an alternative to R's family of apply commands.  There's a set of R functions (apply, sapply, lapply, tapply, eapply, and rapply) that...

Read more »

What’s up with Darwin’s weather?

December 30, 2009
By
What’s up with Darwin’s weather?

Darwin is a the capital city of Australia's Northern Territory. Lying on the coast of far Northern Australia, it's situated well in the tropics and as a result has hot, steamy, monsoonal weather. Darwin's weather has already had impact on urban culture, and now it seems it's had a political impact too: it's been at in the middle of...

Read more »