if i have data files nicely organized like `[participant]/[visit]/[task]/[files]`, then is there a better way to parse it than this?
files |>
str_remove(dir_parent) |>
stringr::str_match(
"/(?<participant>[^/]+)/(?<visit>[^/]+)/(?<task>[^/]+)/(?<filename>[^/]+)"
) |>
as.data.frame()
10 days ago