setName {SparkR}R Documentation

Set an RDD's name.

Description

Set an RDD's name.

Usage

setName(rdd, name)

## S4 method for signature 'RDD,character'
setName(rdd, name)

Arguments

rdd

The RDD whose name is to be set.

name

The RDD name to be set.

Value

a new RDD renamed.

Examples

## Not run: 
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, list(1,2,3))
##D setName(rdd, "myRDD")
##D name(rdd) # "myRDD"
## End(Not run)

[Package SparkR version 0.1 Index]