Learn R Programming

jpinfect (version 2023.2026.06)

.ncol_check: Check Column Count to Classify Dataset Type

Description

This internal function determines the type of dataset (`sex`, `place`, or `bullet`) based on the number of columns.

Usage

.ncol_check(dataset)

Value

A character string indicating the dataset type (`sex`, `place`, or `bullet`). If column numbers do not match any predefined types, an error is thrown.

Arguments

dataset

A data frame whose column count will be analyzed.