bt_get_files: bt_get_files

Description Usage Arguments Value References See Also

View source: R/bt_get_files.R

Description

Function which creates a named list of files in a specified directory. Names are trimmed versions of file names, contents of the list are the file names themselves. Can be easily piped into purrr::map(~read.csv(.)) to create named list of data frames.

Usage

1
bt_get_files(folder, pattern = "", date = FALSE)

Arguments

folder

Directory containing files of interest.

pattern

Optional pattern to use in file searching.

date

Do file names contain a date which should be removed?

Value

Named list of files to be read.

References

None.

See Also

https://github.com/hancockinformatics/BacterialToolkit


hancockinformatics/BacterialToolkit documentation built on Nov. 4, 2019, 1:27 p.m.