Skip to contents

Persist with the default storage level (MEMORY_ONLY).

Usage

cache(x)

# S4 method for class 'SparkDataFrame'
cache(x)

Arguments

x

A SparkDataFrame

Note

cache since 1.4.0

Examples

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