Learn R Programming

exametrika (version 1.1.0)

createBinaryFunction: create Binary Function

Description

This function was introduced in exametrika version 1.1 to handle the possibility of polytomous data input. Since functions prior to v1.1 were designed exclusively for binary data, this factory function serves as a filter and recursively generates functions that maintain backward compatibility by ensuring binary data input.

Usage

createBinaryFunction(fun, fun_name = NULL)

Arguments

fun

A function that performs the actual analysis on binary data

fun_name

Optional character string specifying the function name for error messages