Hi experienced R users,
It\'s kind of a simple thing. I want to sum x by Group.1 depending on one controllable variable.
x
Group.1
I\'d like
Assuming your data is in mydata:
mydata
with(mydata, sum(x[Group.1 <= 2])