There is column (id 1) and the corresponding number of json file in (json) column. There is still the column (id2). How do I compare the values of id1 and id2 so that the names of json are sorted accordingly by id2. I tried so much.
Acc = read.xlsx ("path to file")
Df.new <- acc [order (acc $ id2),]
But it's just ascending ordering. I.E i just need to compare it. For example, find the value 2 in (id2) column , and then find value 2 in id1 and opposite value 2 of (id2) column, put the name of the json file, which in the (Json) column, that is corresponds to value 2 of (id1) column. How do that?
for example value 2 of (id1) column located at A3
cell of excel and value 2 of (id2) column located at D1283
so as output i need this and see the screen
https://i.stack.imgur.com/rya2M.jpg
id1 json id2
1282 2309058401.json 2 0104010074.json