Re: [R] getting the value from previous row

2012-04-15 Thread arunkumar1111
Thanks it helped a lot - Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/getting-the-value-from-previous-row-tp4554761p4560577.html Sent from the R help mailing list archive at Nabble.com. __

[R] getting the value from previous row

2012-04-13 Thread arunkumar1111
Hi I've a dataset with record A = 100,200,300,400... There will be a parameter n. say n=10 means i have add 10% of previous value to the current row current_Val New_value 100 100 200210 (200+10) 300330( 300 +20+10) 400

Re: [R] getting the value from previous row

2012-04-13 Thread Milan Bouchet-Valat
Le vendredi 13 avril 2012 à 06:09 -0700, arunkumar a écrit : Hi I've a dataset with record A = 100,200,300,400... There will be a parameter n. say n=10 means i have add 10% of previous value to the current row current_Val New_value 100 100 200