Learn R Programming

dataSDA (version 0.1.8)

int_detect_format: Detect Interval Data Format

Description

Automatically detect the format of interval data.

Usage

int_detect_format(x)

Value

A character string indicating the detected format: "RSDA", "MM", "iGAP", "SODAS", or "unknown"

Arguments

x

interval data in unknown format

Details

Detection rules:

  • RSDA: has class "symbolic_tbl" and contains complex columns

  • MM: data.frame with paired "_min" and "_max" columns

  • iGAP: data.frame with columns containing comma-separated values (e.g., "1.2,3.4")

  • SODAS: character string ending with ".xml" (file path)

  • SDS: alias for SODAS

Examples

Run this code
data(mushroom.int)
int_detect_format(mushroom.int)  # Should return "RSDA"

data(abalone.iGAP)
int_detect_format(abalone.iGAP)  # Should return "iGAP"

Run the code above in your browser using DataLab