Description Usage Arguments Value Author(s) Examples
A helper function that splits the path of a direcory based on either the '\\' or '/'.
1 | splitMyDir(Dir)
|
Dir |
The path name of a directory |
A list of folder names, with the lowest nested folder occuring first, and returns the reverse order of the directory such that the lowest level is first.
P. A. Harrison
1 2 3 4 5 6 7 8 9 | # Example using '\'
tmp <- "C:\\Test\\Test1\\test2\\test3"
PUCA::splitMyDir(Dir = tmp)
# [1] "test3" "test2" "Test1" "Test" "C:"
# Example using '/'
tmp <- "C:/Test/Test1/test2/test3"
PUCA::splitMyDir(Dir = tmp)
# [1] "test3" "test2" "Test1" "Test" "C:"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.