I have a dataset with 8588 rows and 91 columns. I want to divide it into two new data frames but based on predetermined row numbers.
Example
First data frame
1 A
2 B
3 C
4 D
5 E
6 F
7 G
8 H
9 I
10 J
The second data frame contains the row number
4
7
5
1
9
The third data frame contains the row number
6
10
2
3
8
the result is like this
1st new data frame
4 D
7 G
5 E
1 A
9 I
2nd new data frame
6 F
10 J
2 B
3 C
8 H
The question is how to do this? Thank you