powered by
Automatically detect the format of interval data.
int_detect_format(x)
A character string indicating the detected format: "RSDA", "MM", "iGAP", "SODAS", or "unknown"
interval data in unknown format
Detection rules:
RSDA: has class "symbolic_tbl" and contains complex columns
RSDA
MM: data.frame with paired "_min" and "_max" columns
MM
iGAP: data.frame with columns containing comma-separated values (e.g., "1.2,3.4")
iGAP
SODAS: character string ending with ".xml" (file path)
SODAS
SDS: alias for SODAS
SDS
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