count {SparkR} | R Documentation |
Return the number of elements in the RDD.
Return the number of elements in the RDD
count(x) ## S4 method for signature 'RDD' count(x) ## S4 method for signature 'RDD' length(x)
x |
The RDD to count |
number of elements in the RDD.
## Not run:
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, 1:10)
##D count(rdd) # 10
##D length(rdd) # Same as count
## End(Not run)