Skip to contents

Returns the schema of this SparkDataFrame as a structType object.

Usage

schema(x)

# S4 method for SparkDataFrame
schema(x)

Arguments

x

A SparkDataFrame

Note

schema since 1.4.0

Examples

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