describe {SparkR} | R Documentation |
Computes statistics for numeric columns. If no columns are given, this function computes statistics for all numerical columns.
## S4 method for signature 'DataFrame,character' describe(x, col, ...) ## S4 method for signature 'DataFrame,ANY' describe(x) describe(x, col, ...)
x |
A DataFrame to be computed. |
col |
A string of name |
... |
Additional expressions |
A DataFrame
## Not run:
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D path <- "path/to/file.json"
##D df <- jsonFile(sqlContext, path)
##D describe(df)
##D describe(df, "col1")
##D describe(df, "col1", "col2")
## End(Not run)