unionRDD {SparkR} | R Documentation |
Return the union RDD of two RDDs. The same as union() in Spark.
unionRDD(x, y) ## S4 method for signature 'RDD,RDD' unionRDD(x, y)
x |
An RDD. |
y |
An RDD. |
a new RDD created by performing the simple union (witout removing duplicates) of two input RDDs.
## 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)