I know this answer must be out there, but I can\'t figure out how to word the question.
I\'d like to calculate the differences between values in my data.frame.
Use the diff function
diff
f <- cbind(f, c(NA, diff(f[,2])))