Re: [R] Does SQL group by have a heavy duty equivalent in R

From: hadley wickham <h.wickham_at_gmail.com>
Date: Mon 01 Jan 2007 - 00:33:13 GMT

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

You shouldn't need to do that.

> 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"))

That should be measure=c(...)

Hadley



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon Jan 01 11:36:56 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 01 Jan 2007 - 01:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.