Skip to contents

Returns the path to sample Hansard CSV files included with the package for testing and demonstration purposes.

Usage

hansard_sample_data(year = NULL)

Arguments

year

Character vector of years to get (e.g., "2024", "2025"). If NULL, returns the base houseCSV directory.

Value

Character vector of paths to sample data directories

Examples

# Get all sample data directory
sample_path <- hansard_sample_data()

# Get specific years
sample_2024 <- hansard_sample_data("2024")
sample_files <- list.files(sample_2024, pattern = "*.csv", full.names = TRUE)