prepare_core_housing_needs_tables: Combine CHN tables

View source: R/prepare_core_housing_needs_tables.R

prepare_core_housing_needs_tablesR Documentation

Combine CHN tables

Description

This function reads in a table of data on core housing needs by municipality and creates a combined table that separates out each variable in the data into its own column. The resulting table is exported as a CSV file if write_output is TRUE.

Usage

prepare_core_housing_needs_tables(
  input_path,
  output_path = NULL,
  write_output = TRUE
)

Arguments

input_path

Path to the input CSV file.

output_path

Path to save the output CSV file. If NULL, the file will be saved in the same directory as the input file with the name "combined_table.csv".

write_output

Logical. Should the combined table be written to a file? Default is TRUE.

Value

A data frame containing the combined data.


OHCSpackage documentation built on May 31, 2023, 9:32 p.m.