getHRTParams: Extracts all values of a special slot out of a HRTList

Description Usage Arguments Value Examples

Description

Extracts all values of the given slot in each HRT of the HRTList and returns them in a list

Usage

1
2
3
4
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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")

RHRT documentation built on June 29, 2021, 9:06 a.m.