showDF {SparkR}R Documentation

showDF

Description

Print the first numRows rows of a DataFrame

Usage

## S4 method for signature 'DataFrame'
showDF(x, numRows = 20, truncate = TRUE)

showDF(x, ...)

Arguments

x

A SparkSQL DataFrame

numRows

The number of rows to print. Defaults to 20.

Examples

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

[Package SparkR version 1.5.1 Index]