Skip to content
Prev 106798 / 398525 Next

Does SQL group by have a heavy duty equivalent in R

I converted the whole data frame to character by using
as.matrix

And then using a posting that explained how to get the naming conventions 
back (which had been lost when converting to matrix)

Anything that I did not list with the id's it insisted in including them 
with the measured variables. In other words it would not let me drop.

despite

melted<-melt(BigDF, id=c("SAMPLE_ID","ASSAY_ID"), 
measured=c("GENOTYPE_ID","DESCRIPTION"))

unique(melted$variable)
 [1] CUSTOMER       PROJECT        PLATE          EXPERIMENT     CHIP 
WELL_POSITION  GENOTYPE_ID    DESCRIPTION    ENTRY_OPERATOR
[10] INTERACT       PLATEc
Levels: CUSTOMER PROJECT PLATE EXPERIMENT CHIP WELL_POSITION GENOTYPE_ID 
DESCRIPTION ENTRY_OPERATOR INTERACT PLATEc


I should have only got GENOTYPE_ID    and DESCRIPTION

"hadley wickham" <h.wickham at gmail.com> wrote in message 
news:f8e6ff050612310758p11f96c0dl256ac5b15d11dc2c at mail.gmail.com...