| dragon_dataset | R Documentation |
Reads a file or wraps a data frame. Use dragon_map() afterwards to say
which columns hold the prompt and the response.
dragon_dataset(x, ...)
## S3 method for class 'character'
dragon_dataset(x, format = NULL, name = NULL, ...)
## S3 method for class 'data.frame'
dragon_dataset(x, name = NULL, ...)
x |
A file path (CSV, TSV, JSONL, JSON array, or Parquet) or a data frame. |
... |
Passed to methods. |
format |
One of |
name |
Display name. Defaults to the file name. |
A dragon_dataset object.
ds <- dragon_dataset(dragon_example_data())
ds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.