Blog Archives

R plotting fun

March 25, 2010
By
R plotting fun

Not easy to produce cool looking graphs in R, but it can be done. The results of some messing around are above. Here is the code I used:

Read more »

R: Add vertical line to a plot

March 21, 2010
By

If you have a plot open and want to add a vertical line to it: abline(v=20) #Add vertical line at x=20

Read more »

R: Geometric mean

March 21, 2010
By

gm(x) But this requires package heR.Misc so you might as well just use: exp(mean(log(x)))

Read more »

R: remove all objects fromt he current workspace

March 20, 2010
By

rm(list = ls())

Read more »

R: Backwards for loop

March 20, 2010
By

for (i in 10:1) { print(i) } As easy as that.

Read more »

R-bloggers (with ~50 blogs) has just crossed the 1000 subscribers mark!

March 3, 2010
By
R-bloggers (with ~50 blogs) has just crossed the 1000 subscribers mark!

I am very happy to discover so many of you readers are interested in the content that bloggers are posting about R. Over the past few months, 50 bloggers have come together in this place to share with all of us what they write about R. If you wish, you can see all of the articles they wrote in...

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 »

Export Data Frames To Multi-worksheet Excel File

October 6, 2009
By
Export Data Frames To Multi-worksheet Excel File

A few weeks ago I needed to export a number of data frames to separate worksheets in an Excel file. Although one could output csv-files from R and then import them manually or with the help of VBA into Excel, I was after a more streamlined solution, as I would need to repeat this process

Read more »