getSlotNamesClass: Names of slots of a given class

View source: R/FLAccesors.R

getSlotNamesClassR Documentation

Names of slots of a given class

Description

This function returns the names, as a character vector, of the slots in an S4 object that are of the class specified by the 'class' argument. Comparison is done using is(), so class inheritance is matched.

Usage

getSlotNamesClass(object, class)

Arguments

object

An S4 object to check slots from.

class

The name of the class to match, 'character'.

Author(s)

The FLR Team

Examples

data(ple4)
getSlotNamesClass(ple4, 'FLQuant')


flr/FLCore documentation built on May 4, 2024, midnight