search for: byfoo

Displaying 1 result from an estimated 1 matches for "byfoo".

Did you mean: myfoo
2011 Feb 14
3
help with aggregate()
Hi, I am trying to aggregate some data and I am confused by the results. I load a data frame "all" from a csv file, and then I do: (FOO,BAR,X,Y come from the header line in the csv file, BTW, how do I rename a column?) byFOO <- aggregate(list(all$BAR,all$QUUX,all$X/all$Y), by = list(FOO=all$FOO), FUN = mean); I expect a data frame with 4 columns: FOO,BAR,QUUX and X/Y with all FOO being different (they are character strings, do I need a special incantation to turn them into...