unionRDD {SparkR}R Documentation

Return the union RDD of two RDDs. The same as union() in Spark.

Description

Return the union RDD of two RDDs. The same as union() in Spark.

Usage

unionRDD(x, y)

## S4 method for signature 'RDD,RDD'
unionRDD(x, y)

Arguments

x

An RDD.

y

An RDD.

Value

a new RDD created by performing the simple union (witout removing duplicates) of two input RDDs.

Examples

## Not run: 
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, 1:3)
##D unionRDD(rdd, rdd) # 1, 2, 3, 1, 2, 3
## End(Not run)

[Package SparkR version 0.1 Index]