Comparing the values of a certain number previous rows with the current row
Comparing the values of a certain number previous rows with the current row
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!
(stackoverflow.com/users/11740629/lovestacksflow)lovestacksflow
(stackoverflow.com/users/2835261/iroha)Iroha
(stackoverflow.com/users/23493057/fjcc)FJCC
(stackoverflow.com/collectives/r-language)
A special thanks goes out to the (stackoverflow.com/questions/79493723/comparing-the-values-of-a-certain-number-previous-rows-with-the-current-row)Stackexchange community
I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de
group-by data.table rowwise row r