first,RDD-method {SparkR}R Documentation

First

Description

Return the first element of an RDD

Usage

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

first(x)

Value

The first element of an RDD.

Examples

## Not run: 
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, 1:10)
##D first(rdd)
## End(Not run)

[Package SparkR version 0.1 Index]