Re: [R] Ordering List Items Chronologically

2012-11-20 Thread Sarah Goslee
As long as all your names of list elements are in the same format, this should do it: mylist[order(names(mylist))] Thanks for the reproducible example, Sarah On Tue, Nov 20, 2012 at 11:40 AM, Simon Kiss wrote: > Dear colleagues, > Is there a way to order list items by date? I have a series of

Re: [R] Ordering List Items Chronologically

2012-11-20 Thread William Dunlap
ovember 20, 2012 8:41 AM > To: r-help@r-project.org > Subject: [R] Ordering List Items Chronologically > > Dear colleagues, > Is there a way to order list items by date? I have a series of surveys in a > list where the > name of each list item is the date the survey was ta

[R] Ordering List Items Chronologically

2012-11-20 Thread Simon Kiss
Dear colleagues, Is there a way to order list items by date? I have a series of surveys in a list where the name of each list item is the date the survey was taken but the list items are out of order. Each data frame has a variable in it with the survey date as well, if that helps. Yours, Simon