Skip to contents

Persist with the default storage level (MEMORY_ONLY).

Usage

cache(x)

# S4 method for SparkDataFrame
cache(x)

Arguments

x

A SparkDataFrame

Note

cache since 1.4.0

Examples

if (FALSE) {
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
cache(df)
}