rdirs(..., path = getwd(), sep = "_", pad.num = TRUE, text.only = FALSE)
rdirs
will use R's recylcing rule with different
length vectors.:
) operator or combine (c(
)
function.new_report
and
presentation
.Generates recursive sub directories. Invisibly returns the names of the sub-directories.
Allows the user to input pieces of directory names to quickly generate multiple sub-directories with similar names nested in the same directory.
## fx <- folder(delete_me) ## rdirs(admin, 1:15, c("d", "f", "w"), c(1, 4, 6)) rdirs(admin, 1:15, c("d", "f", "w"), c(1, 4, 6), text.only = TRUE)[1] "admin_01_d_1" "admin_02_f_4" "admin_03_w_6" "admin_04_d_1" "admin_05_f_4" "admin_06_w_6" "admin_07_d_1" [8] "admin_08_f_4" "admin_09_w_6" "admin_10_d_1" "admin_11_f_4" "admin_12_w_6" "admin_13_d_1" "admin_14_f_4" [15] "admin_15_w_6"