I have a large data set (over 1000 variable), but this is just a small snippet. I am trying to take my original individual ID's from the original data set and create 'fake parents' for each individual. So my FID is my fake data (ending in 3) and the MID is my fake mum (ending in 4). I am now trying to rbind that with the original individual ID's (IID), however, want to do so in the original order of my data, and ensure that the the dad and the mum fall beneath each individual as well.
Here is a snippet of my data:
FID <-
10343
10563
10643
10913
11013
113
etc.
MID <-
10344
10564
10644
10914
11014
114
etc.
IID <-
10341
10561
10641
10911
11011
11012
111
112
etc.
I am trying to bind them to ultimately create a data frame where once they are combined, they are in the correct order in terms of number:
10341
10343
10344
10561
10563
10564
10641
10643
10644
10911
10913
10914
11011
11012
11013
11014
111
112
113
114
etc.
Any help would be great!
Thanks.