[R] row subtraction

Marsha Melnyk mmelnyk at stevens.edu
Sun Oct 25 22:45:02 CET 2009

I don't know if there is a way to do this in R but I want to subtract 
within the same column from different rows.  I want to subtract 
c(r)-c(r-1) and continue down the column until they are all calculated 
and form another column. Again I don't know if R can do this but I 
thought I would ask.

Thanks either way

More information about the R-help mailing list