[R] Bug in "transform"?
ggrothendieck at gmail.com
Tue Dec 2 17:19:07 CET 2008
cbind(mtcars, t1 = 3, t2 = 4)
On Tue, Dec 2, 2008 at 11:14 AM, Vitalie Spinu <vitosmail at rambler.ru> wrote:
> Dear useRs,
> Here is a weird behavior of transform function:
> Error in data.frame(`_data`, e[!matched]) :
> arguments imply differing number of rows: 32, 1
> instead, this works:
> also works if applied in turn:
> I often need to use this for creating new variables in data frame from those
> already present.
> Sorely needed!!
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help