Skip to contents

This function extracts the summary and trip tables from Warren TDM HTML file.

Usage

extract_html_table(html_file, anchor_id)

Arguments

html_file

A character string specifying the path to the HTML file.

anchor_id

A character string specifying the name attribute of the anchor (<a>) tag to locate.

Value

A data frame containing the extracted table.

Examples

if (FALSE) { # \dontrun{
summary_table <- extract_html_table("Model.html", "id6")
# View the extracted table
View(summary_table[[1]])

trip_table <- extract_html_table("Model.html", "id52")
# View the extracted table
View(trip_table[[1]])
} # }