count,DataFrame-method {SparkR}R Documentation

Count

Description

Returns the number of rows in a DataFrame

Usage

## S4 method for signature 'DataFrame'
count(x)

Arguments

x

A SparkSQL 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 count(df)
## End(Not run)

[Package SparkR version 1.4.0 Index]