Blog Archives

R tips: Use read.table instead of strsplit to split a text column into multiple columns

May 29, 2009
By
R tips: Use read.table instead of strsplit to split a text column into multiple columns

Someone on the R-help mailing list had a data frame with a column containing IP addresses in quad-dot format (e.g. 1.10.100.200). He wanted to sort by this column and I proposed a solution involving strsplit. But Peter Dalgaard comes up with a much nicer method using read.table on a textConnection object:

Read more »

Data.gov

May 21, 2009
By
Data.gov

I am always on the lookout for useful data sources for training in statistics, so I am excited that Data.gov has opened for business. The purpose of Data.gov is to increase public access to high value, machine readable datasets generated by the US Government.

Read more »

Data.gov

May 21, 2009
By
Data.gov

I am always on the lookout for useful data sources for training in statistics, so I am excited that Data.gov has opened for business. The purpose of Data.gov is to increase public access to high value, machine readable datasets generated by the US Government.

Read more »

SNA with R: Loading large networks using the igraph library

May 6, 2009
By
SNA with R: Loading large networks using the igraph library

We are interested in Social Network Analysis using the statistical analysis and computing platform R. The documentation for R is voluminous but typically not very good, so this entry is part of a series where we document what we learn as we explore the tool and the packages. In our previous post on SNA we gave up...

Read more »

SNA with R: Loading your network data

April 1, 2009
By
SNA with R: Loading your network data

We are interested in Social Network Analysis using the statistical analysis and computing platform R. As usual with R, the documentation is pretty bad, so this series collects our notes as we learn more about the available packages and how they work. We use here the statnet group of packages, which seems to be the...

Read more »

R tips: Swapping columns in a matrix

March 31, 2009
By
R tips: Swapping columns in a matrix

Swapping two columns in a matrix is really easy: m <- m.

Read more »

R tips: Eliminating the “save workspace image” prompt on exit

March 26, 2009
By
R tips: Eliminating the “save workspace image” prompt on exit

When using R, the statistical analysis and computing platform, I find it really annoying that it always prompts to save the workspace when I exit. This is how I turn it off.

Read more »

R tips: Keep your packages up-to-date

March 25, 2009
By
R tips: Keep your packages up-to-date

In this entry in a small series of tips for the use of the R statistical analysis and computing tool, we look at how to keep your addon packages up-to-date.

Read more »