read_portfolio_csv: Read in portfolio CSV/s, working around a number of...

View source: R/read_portfolio_csv.R

read_portfolio_csvR Documentation

Read in portfolio CSV/s, working around a number of non-standard issues

Description

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.


2DegreesInvesting/PACTA_analysis documentation built on April 19, 2023, 6:42 p.m.