Re: [Rd] split.data.frame

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Wed, 16 Dec 2009 00:14:24 +0100

Romain Francois wrote:
> Hello,
>
> I very much enjoy "with" and "subset" semantics for data frames and was
> wondering if we could have something similar with split, basically by
> evaluating the second argument "with" the data frame :

I seem to recall that this idea was considered and rejected when the current split.data.frame was written (10 years ago!). The main reasons were that

   ....
   grp <- ...whatever...
   spl <- split(x, grp)

   ....

and x has a variable called grp, what do you get?

-- 
    O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
   c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
  (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard_at_biostat.ku.dk)              FAX: (+45) 35327907

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 15 Dec 2009 - 23:16:56 GMT

This archive was generated by hypermail 2.2.0 : Wed 16 Dec 2009 - 07:21:08 GMT