accessSlot {SIAMCAT} | R 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")

[Package SIAMCAT version 1.12.0 Index]