h_slots: Getting the Slots from a S4 Object

Description Usage Arguments Value

View source: R/helpers.R

Description

[Experimental]

This helper function extracts requested slots from the S4 class object. It is a simple wrapper of methods::slot() function.

Usage

1
h_slots(object, names)

Arguments

object

(S4)
an object from a formally defined S4 class.

names

(character)
a vector with names of slots to be fetched. This function assumes that for every element in names, there exists a slot of the same name in the object.

Value

list with the slots extracted from object according to names.


0liver0815/onc-crmpack-test documentation built on Feb. 19, 2022, 12:25 a.m.