Hi Albert-Jan, It's impossible to know what went wrong without a reproducible example (https://github.com/hadley/devtools/wiki/Reproducibility). Without that, all I can recommend is trying out reshape2.
Hadley On Tue, May 31, 2011 at 9:44 AM, Albert-Jan Roskam <fo...@yahoo.com> wrote: > Hi, > > I'm using reshape to cast molten data. When I use the following command, R > either crashes (when I use Notepad++) or gives an error (when I use Rgui or > source()), BUT the error occurs not always, maybe only on half the attempts: > w <- cast(v, id + code + productname + year + begin + end + specificDesc + > specificDesc2 ~ type) > Error in merge.data.frame(data, all.combinations, by = unlist(vars), sort = > FALSE, : > > invalid 'yinds' argument > > What does this message mean, and how can I get rid of the error? I tried > changing the colvars from character to factor, but that didn't help. > > I'm using R2.10.1 and either WinXP or Win2000. > > Thanks in advance, > Albert-Jan > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > All right, but apart from the sanitation, the medicine, education, wine, > public > order, irrigation, roads, a fresh water system, and public health, what have > the > Romans ever done for us? > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org 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. > -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ ______________________________________________ R-help@r-project.org 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.