Convert table to YAML
tbl2yaml(tbl = NULL, filename = NULL, ..., open = TRUE)
tbl | The data table or path to a data table |
---|---|
filename | The name of a file to save to |
... | Extra column values to be added |
open | Whether to open the file in a text editor |
opens file or returns YAML text
yaml <- tbl2yaml(demo_marks, class = "PSYCH1001")