Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 212043

Extract different set of rows from data frames in list

$
0
0

It is going to be hard to give you a reproducible example but in general it supposed to be an easy task for many of you. My brain has not yet switched on after midday coffee.

I have a list of 20-30 data frames. I would like to extract specific rows from each data frame. The pattern will be very repetetive.

From first data frame, lets call it LD1 I would like to take rows 1:8 and from every next data frame the row numbers will be higher by 8, so 9:16, third - 17:24, etc.

I would like to keep original names of these data frames.

Can someone switch a light in my brain ?


Viewing all articles
Browse latest Browse all 212043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>