This function creates a customisable table with more specific data from the stored variables. In addition you can also detail the row and column titles. It is an effective way to present data in a structured, organized format.
Parameters:
variable_matrix: 2D array containing data for the table cells using variable names
row_names: Array of row names (corresponding to each row in the matrix).
col_headers: Array of column headers.
header_colour: Background color for the table header.
location_id: ID of the HTML element where the table should be appended.
Basic format: "content_name": ["create_custom_table", "variable_matrix", "row_names", "col_headers", "color", "location_id");
e.g: "myTable": ["create_custom_table", [
["Data R1C1", "Data R1C2", "Data R1C3"],
["Data R2C1", "Data R2C2", "Data R2C3"]
], ["Row 1 Name", "Row 2 Name"], ["Header 1 Name", "Header 2 Name", "Header 3 Name"], "red", "#main"];