saveAsTextFile {SparkR} | R Documentation |
Save this RDD as a text file, using string representations of elements.
saveAsTextFile(rdd, path) ## S4 method for signature 'RDD,character' saveAsTextFile(rdd, path)
rdd |
The RDD to save |
path |
The directory where the splits of the text file are saved |
## Not run:
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, 1:3)
##D saveAsTextFile(rdd, "/tmp/sparkR-tmp")
## End(Not run)