ncol {SparkR} | R Documentation |
Returns the number of columns in a DataFrame
## S4 method for signature 'DataFrame' ncol(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 ncol(df)
## End(Not run)