load_delta: Load a DELTA dataset

View source: R/delta.R

load_deltaR Documentation

Load a DELTA dataset

Description

Create a DeltaParser object from DELTA format files.

Usage

load_delta(chars_file, items_file, specs_file = NULL)

Arguments

chars_file

Path to the DELTA characters file

items_file

Path to the DELTA items file

specs_file

Optional path to the DELTA specifications file

Value

A DeltaParser Rcpp module object

Examples

# Load the packaged example dataset
delta <- tryCatch(
  load_delta(
    system.file("extdata", "chars_viola", package = "RDelta"),
    system.file("extdata", "items_viola", package = "RDelta"),
    system.file("extdata", "specs_viola", package = "RDelta")
  ),
  error = function(e) NULL
)

if (!is.null(delta)) {
  char_count(delta)
  char_feature(delta, 1)
}

RDelta documentation built on Oct. 28, 2026, 5:12 p.m.