first,DataFrame-method {SparkR}R Documentation

Return the first row of a DataFrame

Description

Return the first row of a DataFrame

Usage

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

Arguments

x

A SparkSQL DataFrame

Examples

## Not run: 
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D path <- "path/to/file.json"
##D df <- jsonFile(sqlContext, path)
##D first(df)
## End(Not run)

[Package SparkR version 1.4.1 Index]