Let's say I have this table:
chr start_coor end_coor
1 122000001 128000000
I would like to turn this table into the following table, where the interval is set to 1 million:
chr start_coor end_coor
1 122000001 123000000
1 123000001 124000000
1 124000001 125000000
1 125000001 126000000
1 126000001 127000000
1 127000001 128000000
With base R or tidyverse functions, how can I achieve this?
Thank you.