Description Usage Arguments Value Examples
View source: R/to_subdir_matrix.R
Convert a Vector of Paths to a Matrix of Subfolders
1 2 3 4 5 6 7 | to_subdir_matrix(
paths,
fill.value = "",
result_type = "matrix",
dbg = FALSE,
method = NA_integer_
)
|
paths |
vector of path strings |
fill.value |
value used to fill empty cells of the result matrix |
result_type |
one of |
dbg |
if |
method |
integer specifying the implementation method. Currently not used. |
matrix or data frame, depending on result_type
1 2 3 4 5 6 7 | folder_matrix <- kwb.file::to_subdir_matrix(c("a1/b1/c1", "a1/b2", "a2"))
folder_matrix
dim(folder_matrix)
folder_matrix[folder_matrix[, 1] == "a1", ]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.