Skip to contents

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

Usage

# S4 method for class 'SparkDataFrame'
dim(x)

Arguments

x

a SparkDataFrame

Note

dim since 1.5.0

Examples

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