Skip to contents

This function will return a data frame with numerous specifications for every CSV file passed in the files argument.

Usage

get_csv_specs(
  files,
  expected_colnames = c("Investor.Name", "Portfolio.Name", "ISIN", "MarketValue",
    "Currency")
)

Arguments

files

A character vector containing absolute or relative paths to portfolio CSVs, or a directory containing portfolio CSVs

expected_colnames

A character vector containing the names of the columns expected in the portfolio CSVs

Value

A data frame (invisibly) containing one row per portfolio CSV with columns for each identified specification