翻訳済み
このページは日本語に翻訳済みです。
csv
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(),
)

引数引数引数は関数への入力値です。関数名の後に括弧で囲んで指定します。
引数
引数は関数への入力値です。関数名の後に括弧で囲んで指定します。
source
A path to a CSV file or raw CSV bytes.
delimiter
The delimiter that separates columns in the CSV file. Must be a single ASCII character.
デフォルト値: ","
row-type
How to represent the file's rows.
- If set to
array
, each row is represented as a plain array of strings. - If set to
dictionary
, each row is represented as a dictionary mapping from header keys to strings. This option only makes sense when a header row is present in the CSV file.
デフォルト値: array
定義定義これらの関数や型には、関連する定義を持たせることができます。定義にアクセスするには、対象の関数や型の名前を指定した後に、ピリオド区切りで定義名を記述します。
定義
これらの関数や型には、関連する定義を持たせることができます。定義にアクセスするには、対象の関数や型の名前を指定した後に、ピリオド区切りで定義名を記述します。
decode
Reads structured data from a CSV string/bytes.
data
CSV data.
delimiter
The delimiter that separates columns in the CSV file. Must be a single ASCII character.
デフォルト値: ","
row-type
How to represent the file's rows.
- If set to
array
, each row is represented as a plain array of strings. - If set to
dictionary
, each row is represented as a dictionary mapping from header keys to strings. This option only makes sense when a header row is present in the CSV file.
デフォルト値: array