dot-most_general_class.aidR: Determine the most general atomic type among a set of classes

.most_general_class.aidRR Documentation

Determine the most general atomic type among a set of classes

Description

Given the classes of a single column as it appears across several data frames, returns the name of the most general atomic type that can hold all of them, following the hierarchy logical < integer < numeric < character. If any supplied class is not one of the known atomic types (e.g. Date), "character" is returned.

Usage

.most_general_class.aidR(classes)

Arguments

classes

Character vector of class names (typically the first element of class() for the same column across multiple files).

Value

A length-one character string, one of "logical", "integer", "numeric" or "character".


aidR documentation built on Oct. 28, 2026, 5:13 p.m.