count {SparkR}R Documentation

Return the number of elements in the RDD.

Description

Return the number of elements in the RDD.

Return the number of elements in the RDD

Usage

count(x)

## S4 method for signature 'RDD'
count(x)

## S4 method for signature 'RDD'
length(x)

Arguments

x

The RDD to count

Value

number of elements in the RDD.

Examples

## 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)

[Package SparkR version 0.1 Index]