import_csvs: Import all CSV files in a given directory and save them to a...

Description Usage Arguments Value Examples

View source: R/import_csvs.R

Description

Import all CSV files in a given directory and save them to a list.

Usage

1
2
import_csvs(directory = "", file_pattern = "\\.csv$", recursive = T,
  verbose = T)

Arguments

directory

Directory to search for files.

file_pattern

File pattern to match.

recursive

Whether or not recurse into subdirectories, default T.

verbose

If True display additional information during execution.

Value

List with files; filenames are the names of the list elements (with extension removed).

Examples

1
2
3
4
5
library(ck37r)

files = import_csvs("extdata")

names(files)

ck37r documentation built on June 4, 2017, 1:02 a.m.