Skip to contents

Returns the dimensions (number of rows and columns) of a SparkDataFrame

Usage

# S4 method for SparkDataFrame
dim(x)

Arguments

x

a SparkDataFrame

Note

dim since 1.5.0

Examples

if (FALSE) {
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
dim(df)
}