schema {SparkR} | R Documentation |
Returns the schema of this DataFrame as a structType object.
## S4 method for signature 'DataFrame' schema(x) columns(x) dtypes(x) printSchema(x) schema(x)
x |
A SparkSQL DataFrame |
## Not run:
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D path <- "path/to/file.json"
##D df <- jsonFile(sqlContext, path)
##D dfSchema <- schema(df)
## End(Not run)