[R] speed issues / pros & cons: dataframe vs. matrix

Thomas Pujol
Fri, 22 Jun 2007 22:21:12 -0000

I've read that certain operations performed on a matrix (e.g. ribind, cbind)
are often much faster compared to operations performed on a data frame.

Other then the "bind functions", what are the main operations that are
significantly faster on a a matrix?

I know that data frames allow for columnnames and rownames, and that each column
in a data frame can have different data types.  Are there any other advantages
of storing data in a a dataframe rather then a matrix?


---------------------------------

	[[alternative HTML version deleted]]