printSchema {SparkR}R Documentation

Print Schema of a DataFrame

Description

Prints out the schema in tree format

Usage

## S4 method for signature 'DataFrame'
printSchema(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 printSchema(df)
## End(Not run)

[Package SparkR version 1.5.2 Index]