first,RDD-method {SparkR} | R Documentation |
Return the first element of an RDD
## S4 method for signature 'RDD' first(x) first(x)
The first element of an RDD.
## Not run:
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, 1:10)
##D first(rdd)
## End(Not run)