View source: R/aigra-read-template.R
| aigra_read_template | R Documentation |
Reads an AIGRA tabular item-bank template into R as a data frame. CSV files are read as UTF-8 by default. XLSX files require the readxl package.
aigra_read_template(path, sheet = 1, fileEncoding = "UTF-8", ...)
path |
Path to a CSV, XLSX, or XLS template file. |
sheet |
Sheet name or sheet index for XLSX files. Defaults to the first sheet. |
fileEncoding |
Encoding used for CSV files. Defaults to UTF-8. |
... |
Additional arguments passed to the underlying reader. |
A data frame with the standard AIGRA template columns.
## Not run:
template <- aigra_read_template("template.csv")
template <- aigra_read_template("template.xlsx")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.