describe,DataFrame,character-method {SparkR}R Documentation

describe

Description

Computes statistics for numeric columns. If no columns are given, this function computes statistics for all numerical columns.

Usage

## S4 method for signature 'DataFrame,character'
describe(x, col, ...)

## S4 method for signature 'DataFrame,ANY'
describe(x)

describe(x, col, ...)

Arguments

x

A DataFrame to be computed.

col

A string of name

...

Additional expressions

Value

A DataFrame

Examples

## 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)

[Package SparkR version 1.4.1 Index]