Try this:
by(x, x$Form, function(.x)rbind(.x[-3], sum(.x[2])))
On Wed, May 19, 2010 at 6:49 PM, Gerrit Draisma wrote:
> I am looking for the following simple question.
> I have a data frame with names and numbers, divided in categories.
> I would like to produce a text file with page breaks,
> l
I am looking for the following simple question.
I have a data frame with names and numbers, divided in categories.
I would like to produce a text file with page breaks,
listing the names and numbers by category,
and totalling the numbers.
Example:
Name<-LETTERS[1:6]
Score<-rep(5:8,length.out
2 matches
Mail list logo