This is the original data.
str(demo$ID)
chr [1:5000] "Q05910452" "Q00509389" "Q59112261" "Q38120745" ...
str(ID.unique)
chr [1:4785, 1] "Q00027726" "Q00071545" "Q00073883" "Q00077269" ...
What I want to do is to make two data sets, one of which has 4785 IDs from demo$ID that are exactly same with ID.unique.
The other data set I want to make consists of the other IDs (215 IDs = 5000 - 4785) which are not included in ID.unique.
How can I do this? Please give a big help. Thank you very much.