Re: [R] implicit data frame reference

2011-09-17 Thread R. Michael Weylandt
This one seems to have slipped through the cracks, but I'll take a stab at it: I don't think there's an (easy) general solution but there are two direct ways to get at the idea. If you are generally only seeking to do things like: x[order(x)] would sort(x) work for you? More generally, this can

[R] implicit data frame reference

2011-09-13 Thread Benjamin Polidore
If I create an aggregation like this: aggregate(lastYear[,8:10],list(Stadium=lastYear$STAD),mean) I'll get a new data frame, which I can order if I assign it like this: newFrame <- aggregate(lastYear[,8:10],list(Stadium=lastYear$STAD),mean) newFrame[order(newFrame$TEMP),] But.. if I just want t