How to obtain a list of directories within a directory, like list.files(), but instead “list.dirs()”
Update: A list.dirs function was added to the base package in revision 54353, which was included in the R-2.13.0 release in April, 2011. list.dirs(path = “.”, full.names = TRUE, recursive = TRUE) So my function below was only useful for a few months. 🙂 I couldn’t find a base R function to do this, but … Read more