delta2sliks: Convert DELTA dataset to SLIKS format

View source: R/delta2sliks.R

delta2sliksR Documentation

Convert DELTA dataset to SLIKS format

Description

Converts a DELTA dataset to SLIKS (Simple List of Interactive Key States) format, which is used for interactive identification keys.

Usage

delta2sliks(
  delta,
  output_file = "data.js",
  exclude_numeric = TRUE,
  remove_temp = TRUE
)

Arguments

delta

A DeltaParser object (created by load_delta)

output_file

Output file name (default: "data.js")

exclude_numeric

Logical; if TRUE, exclude numeric and text characters

remove_temp

Logical; if TRUE, remove temporary files after conversion

Details

The function assumes that the CONFOR program executable is available in the system PATH or in the current working directory.

Value

Invisibly returns the path to the output file

Examples

# Requires the CONFOR executable on the PATH.

try({
  delta <- load_delta(
    system.file("extdata", "chars_viola", package = "RDelta"),
    system.file("extdata", "items_viola", package = "RDelta"),
    system.file("extdata", "specs_viola", package = "RDelta")
  )
  delta2sliks(delta, output_file = file.path(tempdir(), "data.js"))
})


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