first,DataFrame-method {SparkR} | R Documentation |
Return the first row of a DataFrame
## S4 method for signature 'DataFrame' first(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 first(df)
## End(Not run)