read_files: Read files

Description Usage Arguments Value Examples

View source: R/load_data.R

Description

This internal function simply reads in data files.

Usage

1
read_files(input = NULL, skip_lines = NULL)

Arguments

input

A vector of file names, optionally with named items.

skip_lines

The number of lines to skip at the beginning of CSV files (usually containing header information before the actual data starts).

Value

A named list of dataframes to be further processed by *_format_data functions. If the input vector is named, these item names will be retained in the output list. Otherwise, the list items will be named after the files read fron disk.

Examples

1
2
3
4
## Not run: 
read_files(my_file_list, 4)

## End(Not run)

Guilz/rfret documentation built on Oct. 18, 2021, 2:14 p.m.