pub fn csv(
engine: &mut Engine<'_>,
source: Spanned<DataSource>,
delimiter: Delimiter,
row_type: RowType,
) -> SourceResult<Array>
Expand description
Reads structured data from a CSV file.
The CSV file will be read and parsed into a 2-dimensional array of strings: Each row in the CSV file will be represented as an array of strings, and all rows will be collected into a single array. Header rows will not be stripped.
ยงExample
#let results = csv("example.csv")
#table(
columns: 2,
[*Condition*], [*Result*],
..results.flatten(),
)