Skip to contents

This function will read in one more portfolio CSVs. It works around a number of common issues, like alternate column names, alternate delimiter, alternate decimal and grouping marks, file encodings besides ASCII or UTF-8, etc.

Usage

read_portfolio_csv(filepaths, combine = TRUE)

Arguments

filepaths

A character vector or single column data frame (strings should be valid file paths to CSV files or a directory that contains CSV files)

combine

A single element logical (default TRUE)

Value

If combine is TRUE, returns a tbl_df with all of the readable data from the portfolio CSVs combined. If combine is FALSE, returns a list of tbl_dfs, one for each readable portfolio CSV.