Skip to contents

This function reads accident data from a CSV file, renames the columns, adds attributes and class, and applies post-processing if provided.

Usage

read_accident_data(
  file,
  post_process = select_post_processor(lookup_dataset_name(file))
)

Arguments

file

The path to the CSV file.

post_process

A function to apply post-processing to the data.

Value

A data frame containing the accident data.

Examples

if (FALSE) { # \dontrun{
read_accident_data("example/honhyo_2023.csv")
} # }