keys {SparkR} | R Documentation |
Return an RDD with the keys of each tuple.
keys(rdd) ## S4 method for signature 'RDD' keys(rdd)
rdd |
The RDD from which the keys of each tuple is returned. |
## Not run:
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, list(list(1, 2), list(3, 4)))
##D collect(keys(rdd)) # list(1, 3)
## End(Not run)