Learn R Programming

quantspec (version 1.0-0)

getWnj-KernelWeight: Get attribute Wnj from a QSpecQuantity.

Description

If the optional parameter j is supplied, then only the jth element(s) of the vector will be returned, the entire vector otherwise.

Usage

## S3 method for class 'KernelWeight':
getWnj(object, j)

Arguments

object
KernelWeight from which to get the Wnj.
j
an integer or vector of indices specifying which Wnj[j] to return.

Value

  • Returns levels attribute, as a vector of real numbers.

Examples

Run this code
wgt <- kernelWeight(W=W1, N=2^3, bw=0.7)
getWnj(wgt)
getWnj(wgt, 2)
getWnj(wgt, c(2,7))

Run the code above in your browser using DataLab