rmdir {crunch} | R Documentation |
Delete a folder
Description
Like rmdir
in a file system, this function removes a folder. Unlike the
file-system version, it does not require the folders to be empty.
Usage
rmdir(x, path)
Arguments
x |
A |
path |
A character "path" to the folder: either a
vector of nested folder names or a single string with nested folders
separated by a delimiter ("/" default, configurable via
|
Value
NULL
See Also
mv()
to move entities to a folder; cd()
to select a folder;
file.remove()
if you literally want to delete a directory
from your local file system, which rmdir()
does not do
Examples
## Not run:
ds <- loadDataset("Example survey")
rmdir(ds, "Demographics")
# Or with %>%
require(magrittr)
ds <- ds %>%
rmdir("Demographics")
## End(Not run)
[Package crunch version 1.30.4 Index]