The reason that I used the as.matrix is because I understood that everything
in the data.frame had to be either numeric or character. Most of mine were
factors.
Thank you so much for finding my elusive spelling mistake. I removed the
offending "d" from "measured" and now it works. However, I have run into a
different sort of a problem and appreciated the error message but it is not
leading me to the solution.
> casted<-cast(melted,SAMPLE_ID+ASSAY_ID~GENOTYPE_ID)
Error in check_formula(formula, varnames) :
Formula contains variables not in list of known variables
yet look at this
unique(melted$variable)
[1] GENOTYPE_ID DESCRIPTION
Levels: GENOTYPE_ID DESCRIPTION
On 12/31/06, hadley wickham <[EMAIL PROTECTED]> wrote:
>
> > 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
>
--
Farrel Buchinsky
Mobile: (412) 779-1073
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.