IsICAMSCatalog: Check whether an R object contains one of the ICAMS catalog...

View source: R/infer_catalog_format.R View source: R/infer_catalog_format.R

IsICAMSCatalogR Documentation

Check whether an R object contains one of the ICAMS catalog classes

Description

Check whether an R object contains one of the ICAMS catalog classes

Check whether an R object contains one of the ICAMS catalog classes

Usage

IsICAMSCatalog(object)

IsICAMSCatalog(object)

Arguments

object

An R object.

Value

A logical value.

A logical value.

Examples

# Create a matrix with all values being 1
object <- matrix(1, nrow = 96, ncol = 1, 
                 dimnames = list(catalog.row.order$SBS96))
IsICAMSCatalog(object) # FALSE

# Use as.catalog to add class attribute to object
catalog <- as.catalog(object)
IsICAMSCatalog(catalog) # TRUE      
# Create a matrix with all values being 1
object <- matrix(1, nrow = 96, ncol = 1, 
                 dimnames = list(catalog.row.order$SBS96))
IsICAMSCatalog(object) # FALSE

# Use as.catalog to add class attribute to object
catalog <- as.catalog(object)
IsICAMSCatalog(catalog) # TRUE      

ICAMS documentation built on June 15, 2025, 1:08 a.m.