Im pretty new in this so would welcome any suggestions.
I have three columns in a data frame, one showing chromosome location and the next two showing the beginning and end of the chromosome location (i.e. chr1 1100 1200).
The first ten rows show data for chr1 but after that there is data for chr2 and so on.
I have created a loop and i want to apply it for the chr1 rows only. And then I want to repeat the same things for chr2.
So far i have written the following which doesn't seem to work: for(i in data.frame$chr1).
Any other suggestions?
Thanks