I have a model that calculates hourly disease severity for 3000 hours and writes them in a csv file ( 3000 rows and eight columns). In addition to such output, I also want to have a file with just specific rows (here hours) and the same number of columns. In other words, I want a file that only writes the results in row(hour) 10, 20, 30, 40, 50, 100, 120 and 150 ( or any other desired row number)? I would be grateful if someone helps me how to do it in R.
Thanks