utils_load_directories_csv: Load directory "csv" file(s) into memory

Description Usage Arguments Value Examples

Description

Loads specified directory "csv" file(s) into memory. Stacks individual directories into a single dataframe and further passes the output down to utils_format_directory_raw for initial formatting.

Usage

1
2
3
4
5
6
utils_load_directories_csv(
  type = c("general", "trades"),
  directories,
  path,
  verbose
)

Arguments

type

A character string: "general" or "trades". Refers to the type of directory to shall be loaded.

directories

A character string vector providing the name(s) of the directory(/ies) to load.

path

A character string specifying the path to the folder where the directory(/ies) live as ".csv" file(s).

verbose

Whether the function should be executed silently (FALSE) or not (TRUE).

Value

A dataframe.

Examples

1
2
3
4
5
6
7
## Not run: 
  utils_load_directories_csv(
    "general", "1861-1862",
    "home/projects/glasgow-entrepreneurs/data/general-directories", FALSE
  )

## End(Not run)

podcleaner documentation built on Jan. 12, 2022, 1:06 a.m.