values {SparkR}R Documentation

Return an RDD with the values of each tuple.

Description

Return an RDD with the values of each tuple.

Usage

values(rdd)

## S4 method for signature 'RDD'
values(rdd)

Arguments

rdd

The RDD from which the values of each tuple is returned.

Examples

## Not run: 
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, list(list(1, 2), list(3, 4)))
##D collect(values(rdd)) # list(2, 4)
## End(Not run)

[Package SparkR version 0.1 Index]