multiple_csv_reader: Read Multiple CSV files into R This function reads multiple...

Description Usage Arguments Value Examples

View source: R/multiple_csv_reader.R

Description

Read Multiple CSV files into R This function reads multiple CSVs in a directory must be same structure.

Usage

1
multiple_csv_reader(file_path, rows_to_skip = 0, col_names = TRUE)

Arguments

file_path

The Directory in which the files are located

rows_to_skip

The number of rows from the top to be excluded

col_names

If columns are named; defaults to TRUE

Value

a data frame object full of file paths

Examples

1
2
3
4
5
library(SangerTools)
file_path = 'my_file_path_where_csvs_are_stored'
if (length(SangerTools::multiple_csv_reader(file_path))==0){
 message("This won't work without changing the variable input to a local file path with CSVs in")
}

ald0405/SangerTools documentation built on Jan. 14, 2022, 9:42 p.m.