accessSlot {SIAMCAT}R Documentation

Universal slot accessor function for siamcat-class.

Description

This function is used internally by many accessors.

Usage

accessSlot(siamcat, slot)

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.

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")

[Package SIAMCAT version 1.0.0 Index]