In R: Is there a comparable function to Unix's "find"? -


i want version of in r.

find . ( -type d -name "example_folder_*" ) -prune -print > directory.csv 

the reason:

i receiving directory contains large amount of files , subdirectories. want know folders have format, "example_folder_", located.

r has function called list.dirs(arg) return vector of directories under , including arg. don't think there equivalent of -prune. once have directory tree vector though, should easy filter standard r tools.


Popular posts from this blog