accessSlot: Universal slot accessor function for siamcat-class.

View source: R/siamcat_class_accessors.R

accessSlotR Documentation

Universal slot accessor function for siamcat-class.

Description

This function is used internally by many accessors.

Usage

accessSlot(siamcat, slot, verbose=1)

Arguments

siamcat

an object of siamcat-class.

slot

A character string indicating the slot (not data class) of the component data type that is desired.

verbose

If the slot is empty, should a message be printed? values can be either 0 (no output) or 1 (print message)

Value

Returns the component object specified by the argument slot. Returns NULL if slot does not exist.

Examples

#
data(siamcat_example)
accessSlot(siamcat_example, "label")
accessSlot(siamcat_example, "model_list")

zellerlab/siamcat documentation built on Feb. 1, 2024, 2:21 a.m.