read_PDS_csv: Loads PDS data from csv files

Description Usage Arguments Value Examples

Description

By default, the csv files are expected to be found in a folder called PDS and be called PDS_full_establishment.csv, PDS_full_building.csv and PDS_full_condition.csv

Usage

1
2
3
4
read_PDS_csv(establishment_path = "./PDS/PDS_full_establishment.csv",
  establishment_sep = "\t", building_path = "./PDS/PDS_full_building.csv",
  building_sep = ",", condition_path = "./PDS/PDS_full_condition.csv",
  condition_sep = "\t")

Arguments

establishment_path

character. Path to the establishment level data.

establishment_sep

character. String used as column divider by the csv holding establishment data

building_path

character. Path to the building level data

building_sep

character. String used as column divider by the csv holding building level data

condition_path

character. Path to the component level data

condition_sep

character. String used as column divider by the csv holding component level data

Value

A list containing the three data frames pulled from the csv files

Examples

1
2
3
4
5
6
7
8
## Not run: 
# from default location
read_PDS_csv()

# from user supplied location
read_PDS_csv("./data/est.csv", ",", "./data/build.csv", ",", "./data/comp.csv", ",")

## End(Not run)

DFE-Capital/Blockbuster2DataPrep documentation built on May 12, 2019, 5:41 a.m.