Learn R Programming

NMproject (version 0.6.9)

list_dirs: List directories

Description

Wrapper around list.dirs() but includes maxdepth and pattern arguments and removes full.names argument, always return full names.

Usage

list_dirs(
  path = ".",
  full.names = TRUE,
  recursive = FALSE,
  maxdepth = 1,
  pattern
)

Value

Character vector of paths to matched directories.

Arguments

path

Same as list.dirs().

full.names

Same as list.dirs().

recursive

Same as list.dirs().

maxdepth

Integer (default = 1) maximum depth to search.

pattern

Optional character (default is missing) regex pattern match on directory name.