checkSaved: Determine if combination of N, W and K is available on disk,...

Description Usage Arguments Details Value Examples

View source: R/checkSaved.R

Description

Given values for N, W and K, determine if the combination is available on disk as a data() load. If so, significant time savings can be obtained, especially for large N.

Usage

1
checkSaved(N, W, K)

Arguments

N

the length of the time index array, in units of deltat.

W

the time bandwidth, in units of df/year. This is not the same units as a slp(...) call, and W should be an integer, e.g., 6 df/year.

K

the number of basis vectors requested.

Details

Does a lookup against data(slpSavedObjects) to determine whether the combination of N, W and K is saved on disk as part of the package, and can be loaded. It is possible to create your own basis objects for particular choices of N, W and K and save them as part of the library directory, updating slpSavedObjects as you do so.

Value

Logical (TRUE or FALSE), indicating availability or lack thereof.

Examples

1
2
3
4
    # Examples using pkg:gam
    library("slp")
    checkSaved(N = 730, W = 6, K = 24)
    checkSaved(N = 365, W = 6, K = 13)

slp documentation built on May 2, 2019, 2:39 a.m.