Note that there are some explanatory texts on larger screens.

plurals
  1. POCan I list objects sorted by date?
    primarykey
    data
    text
    <p>This would be very useful to me. Can I sort the output of <code>ls()</code> by date (last modified or something similar)?</p> <p><strong>Context:</strong> I have a very messy workspace full of various <code>data.frames</code>, <code>variables</code> and <code>plots</code>. I need to find a <code>data.frame</code> and I cannot remember what I called it, only that I was working on it recently. Hence <code>ls()</code> sorted by date modified would help me work out what I called it.</p> <p><strong>To clarify:</strong> This is not a question about using <code>history()</code>. I use history frequently and often save it when I think it might be required. In this case, history does not cover the period required, so I cannot find the <code>data.frame</code> using <code>history()</code>.</p> <p><strong>Additional:</strong> Aside from the stated task of finding a recently created <code>data.frame</code>, it would be very useful, in general, to be able to sort <code>ls()</code> according to date. I have well over 100 objects in the workspace that I have been working on for over 2 years (searching 2 years of <code>history</code> does not sound fun either). If it were possible to sort these objects into a chronological order then I would have some idea of which were newer (and possibly edited) and which were older (and perhaps original).</p> <p>I have attempted to improve my workflow by slowly moving individual objects into smaller, related workspaces. But this process will take time, and is essentially pointless (as I am nearing the end of data analysis anyway). </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload