Skip to content
Prev 387192 / 398502 Next

ddply/tapply and set function

The original data frame can be like
Type   Id
1         1
1         5
1         7
2         3
2         8
..        ....

tapply(Id,Type,set) will yield the sets correctly (assuming the data
frame is attached) but not a data frame of the form mentioned.

A similar ddply command does not work at all with the function 'set'
(while 'mean' etc work fine)

Thanks and Best

A Mani

Prof.Dr.(Miss) A Mani
ASL, AMS, ISRS, CLC, CMS, MTA
Senior Member, International Rough Set Society
Research Scientist, Indian Statistical Institute, Kolkata
Formerly HBCSE, TIFR, CU.
Homepage: https://www.logicamani.in
Blog: https://logicamani.blogspot.in/
Research Gate: https://www.researchgate.net/profile/Mani_A
sip:girlprofessor at ekiga.net
Pronouns: She/Her/Hers
On Wed, Feb 17, 2021 at 4:24 PM Jim Lemon <drjimlemon at gmail.com> wrote: