I have a function where i calculate count of a column in R
I want to arrange my dataframe entries according to a given list passed to a function
input appeared in this form:
complete( c(2, 55, 8, 111, 12))
complete(30:25)
I have my data frame in ascending order by id, i want it to be arranged according to list given
id   nobs
2    463
8    586
12   338
55   711
111  932
Should be sorted / rearranged as:
id   nobs
2    463
55   711
8    586
111  932
12   338
 
     
    