Learn R Programming

raptr (version 1.0.1)

cache: Get and set cache methods

Description

Getter and setter methods for caches in RapData and RapResults object.

Usage

cache(x, name, y)

# S4 method for RapData,character,ANY cache(x, name, y)

# S4 method for RapData,character,missing cache(x, name, y)

# S4 method for RapResults,character,ANY cache(x, name, y)

# S4 method for RapResults,character,missing cache(x, name, y)

Value

ANY or NULL depends on y argument.

Arguments

x

RapData or RapResults object

name

character hash.

y

if ANY this object gets cached with name, else if missing the object hashed at name gets returned.