0

I'm trying to sort a list of data frames that looks like this:

   List of 16
   $ 0 :'data.frame':.........
   ..$ rownames(Meta)
   $ 1 :'data.frame':.........
     ..$ rownames(Meta)
   $ 11 :'data.frame':.........
     ..$ rownames(Meta)
   $ 12 :'data.frame':.........
     ..$ rownames(Meta)
     .........

I tried the following but without success:

 v = rep(0:15, times = 1)
 out[order(v)]

Can anyone help me please?

Thank you in advance

NewUsr_stat
  • 2,351
  • 5
  • 28
  • 38
  • Is this all the output you received? Or is there more you can share? – J. Murray Oct 22 '19 at 20:52
  • 1
    Maybe `out[order(as.numeric(names(out)))]`. – nicola Oct 22 '19 at 21:00
  • It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. – MrFlick Oct 22 '19 at 21:02
  • `out[stringr::str_order(names(out), numeric = TRUE)]`? – Rui Barradas Oct 22 '19 at 21:25

0 Answers0