I have a large data dataframe (48 x 100). Is there an elegant formula in R that makes you transform this dataframe in to a "custom dataframe"?
a = c(2, 3, 5)
b = c(2, 3, 5)
c = c(2, 3, 5)
df <- rbind(a,b,c)
Now.. i want cumsum of df so it looks like this.
I know its easy to do with a loop.. but is there a function?