"Split Full Paths into Directory Path and Filename"

split_into_dir_and_file(paths)

Arguments

paths

vector of character representing full file paths

Value

data frame with columns directory and file

Examples

split_into_dir_and_file(c("path/to/file-1", "path/to/file-2"))
#>   directory   file
#> 1   path/to file-1
#> 2   path/to file-2