[R] How do you refer to the row above in a data frame ?

ppaarrkk simon_ecc at yahoo.co.uk
Thu Feb 7 16:59:46 CET 2008


You have a two-dimensional data frame.

Columns is easy, say 

col4 <- col3 - col2

How do you do

row3 <- row2 +1

for example.
-- 
View this message in context: http://www.nabble.com/How-do-you-refer-to-the-row-above-in-a-data-frame---tp15336933p15336933.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list