Displaying 1 result from an estimated 1 matches for "arunoff_2071".
2011 Jan 17
2
Summing data frame columns on identical data
...row basis). However, there are a slightly different number of rows in each data frame, so I'm receiving the following error: "Error in Ops.data.frame(mrunoff_207101[3], mrunoff_207102[3]) :
? + only defined for equally-sized data frames".
Here is what I'm attempting to do:
> arunoff_2071 <- cbind(mrunoff_207101[1:2], (mrunoff_207101[3] + mrunoff_207102[3] + mrunoff_207103[3] + mrunoff_207104[3] + mrunoff_207105[3] + mrunoff_207106[3] + mrunoff_207107[3] + mrunoff_207108[3] + mrunoff_207109[3]))
Is there an easy way of summing based on congruent values in columns 1 and 2? The o...