getLevels-QSpecQuantity: Get attribute 'levels' from a 'QSpecQuantity'.

getLevels-QSpecQuantityR Documentation

Get attribute levels from a QSpecQuantity.

Description

If the optional parameter j is supplied, then the jth vector of levels will be returned, a list with all vectors otherwise.

Usage

## S4 method for signature 'QSpecQuantity'
getLevels(object, j)

Arguments

object

QSpecQuantity from which to get the levels.

j

Index pointing to a set of levels in the list; optional.

Value

Returns levels attribute, as a vector of real numbers.

Examples

qPG         <- quantilePG(rnorm(10), levels.1=c(0.25,0.5))
levels.list <- getLevels(qPG)
levels.1    <- getLevels(qPG,1)

quantspec documentation built on Sept. 11, 2024, 9:15 p.m.