aigra_read_template: Read an AIGRA template from CSV or XLSX

View source: R/aigra-read-template.R

aigra_read_templateR Documentation

Read an AIGRA template from CSV or XLSX

Description

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.

Usage

aigra_read_template(path, sheet = 1, fileEncoding = "UTF-8", ...)

Arguments

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.

Value

A data frame with the standard AIGRA template columns.

Examples

## Not run: 
template <- aigra_read_template("template.csv")
template <- aigra_read_template("template.xlsx")

## End(Not run)

AIGRA documentation built on July 10, 2026, 5:06 p.m.