getHRTParams {RHRT} | R Documentation |
Extracts all values of a special slot out of a HRTList
Description
Extracts all values of the given slot in each HRT of the HRTList and returns them in a list
Usage
getHRTParams(HRTListObj, sl)
## S4 method for signature 'HRTList'
getHRTParams(HRTListObj, sl)
Arguments
HRTListObj |
HRTList object |
sl |
(Character) Value of a slot saved by an HRT object |
Value
(numeric vector or list) Vector or list of the numerics stored in the given slot
Examples
# You need an HRTList
hrtl <- vectorToHRT(testdataLong, testdataLong_Ann)
# Get all TOs of the HRTs in your HRTList
getHRTParams(hrtl, "TO")
# You can access all slots in the HRTs
getHRTParams(hrtl, "intercept")
# If you access slots that include more than one numeric, the function returns a list
getHRTParams(hrtl, "preRRs")
[Package RHRT version 1.0.1 Index]