Hi, I have a list of data, e.g. r[[i]] r[[1]]= 1 2 1 6 5 5 5.5 3 r[[2]]= 4 6 3 5 7 8 3 5 … r[[500]]. In the first column, the selected values should like this: (the later value)-(the former value)>=1 In the second column, the selected values should like this: (the former value)-(the later value)>=1. The outputs are: For r[[1]] [1,1] 1, [3,1] 5, [1,2] 2 For r[[2]] [1,1] 4, [3,1] 7 [1,2] 6, [2,1] 5 … r[[500]]. I have no idea what kind of functions can be used in this process. Could you help me? Thank you very much.
-- View this message in context: http://r.789695.n4.nabble.com/pick-up-the-values-tp4603277.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.