[R] [R-pkgs] dataframe package

Tim Hesterberg timhesterberg at gmail.com
Tue May 22 15:47:42 CEST 2012


A new 'dataframe' package is on CRAN.  This is a modified version
of the data frame code in R, modified to make fewer copies of the inputs
and run faster, e.g.
  as.data.frame(a vector)
makes 1 copy of the vector rather than 3,
  data.frame(a vector)
makes 3 copies rather than 6, and
  x[, "a"] <- newValue
makes (2,2,1) copies of (old data frame, new column, integer vector
of row names) rather than (6,4,2).

Functionality should be identical to existing R code, with two exceptions:
* bug fix, if x has two columns, then x[[4]] <- value will fail rather than 
  producing an illegal data frame
* round(a data frame with numeric and factor columns)
  rounds the numeric columns and leaves the factor columns unchanged, rather
  than failing.

Tim Hesterberg

NEW!  Mathematical Statistics with Resampling and R, Chihara & Hesterberg
http://www.amazon.com/Mathematical-Statistics-Resampling-Laura-Chihara/dp/1118029852/ref=sr_1_1?ie=UTF8
http://home.comcast.net/~timhesterberg
 (resampling, water bottle rockets, computers to Costa Rica, shower = 2650 light bulbs, ...)

_______________________________________________
R-packages mailing list
R-packages at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages



More information about the R-help mailing list