columns,DataFrame-method {SparkR} | R Documentation |
Return all column names as a list
## S4 method for signature 'DataFrame' columns(x) ## S4 method for signature 'DataFrame' names(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 columns(df)
## End(Not run)