Description Usage Arguments Value Examples
View source: R/split_into_root_folder_file_extension.R
Split Full Paths into Root, Folder, File and Extension
1 | split_into_root_folder_file_extension(paths, n_root_parts = 0)
|
paths |
vector of character representing full file paths |
n_root_parts |
number of first path segments considered as "root" |
data frame with columns root
, folder
, file
,
extension
, depth
1 2 3 4 5 6 7 8 9 10 11 | paths <- c(
"//always/the/same/root/project-1/intro.doc",
"//always/the/same/root/project-1/logo.png",
"//always/the/same/root/project-2/intro.txt",
"//always/the/same/root/project-2/planning/file-1.doc",
"//always/the/same/root/project-2/result/report.pdf"
)
split_into_root_folder_file_extension(paths)
split_into_root_folder_file_extension(paths, n_root_parts = 6)
split_into_root_folder_file_extension(paths, n_root_parts = 7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.