add_path_fname: Add paths and filenames to a df

Description Usage Arguments Value See Also Examples

View source: R/add_path_fname.R

Description

This helper function wraps 'fs' functions to add the path and filename without extension as columns in a df.

Usage

1
add_path_fname(path = NULL, col_names = NULL, file_ext = NULL, ...)

Arguments

path

Path to files, Default: NULL

col_names

Names for the columns. Default: NULL

file_ext

File extension, Default: NULL

...

extra parameters to pass to tidyr::separate

Value

A data-frame.

See Also

tibble dir_ls,path_ext_remove,path_file mutate

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

medpsytuebingen/medpsytueR documentation built on May 25, 2019, 10:30 p.m.