Skip to contents

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

Usage

describe(x, col, ...)

# S4 method for SparkDataFrame,character
describe(x, col, ...)

# S4 method for SparkDataFrame,ANY
describe(x)

Arguments

x

a SparkDataFrame to be computed.

col

a string of name.

...

additional expressions.

Value

A SparkDataFrame.

Note

describe(SparkDataFrame, character) since 1.4.0

describe(SparkDataFrame) since 1.4.0

Examples

if (FALSE) {
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
describe(df)
describe(df, "col1")
describe(df, "col1", "col2")
}