HI, I would like to extract data in a specific way. For example, the rainfall data
0,0,1.5,0,0, 3,1,2.5,0,0,0,0, 2.3,0,0,0, 2.1,1.4,0,0,0, 3,2,1,0,0,0... data_1: 1.5, 2.3 ( a single nonzero data between zeros data) data_2: 3.1, 2.5, 2.1,1.4 ( two nonzero data between zeros data) data_3: 3,1,2.5, 3,2,1 ( three nonzero data between zeros data) Thank you so much for any help given. Roslina [[alternative HTML version deleted]]
______________________________________________ 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.