Skip to contents

Returns the schema of this SparkDataFrame as a structType object.

Usage

schema(x)

# S4 method for class 'SparkDataFrame'
schema(x)

Arguments

x

A SparkDataFrame

Note

schema since 1.4.0

Examples

if (FALSE) { # \dontrun{
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
dfSchema <- schema(df)
} # }