count {SparkR} | R Documentation |
Returns the number of rows in a DataFrame
Aggregate function: returns the number of items in a group.
Aggregate function: returns the number of items in a group.
## S4 method for signature 'DataFrame' count(x) ## S4 method for signature 'Column' count(x) ## S4 method for signature 'Column' n(x) n(x)
x |
A SparkSQL DataFrame |
Other agg_funcs: approxCountDistinct
,
approxCountDistinct
,
approxCountDistinct
; avg
,
avg
; countDistinct
,
countDistinct
, countDistinct
,
n_distinct
; first
,
first
; last
,
last
; max
;
mean
; min
;
sumDistinct
, sumDistinct
;
sum
Other agg_funcs: approxCountDistinct
,
approxCountDistinct
,
approxCountDistinct
; avg
,
avg
; countDistinct
,
countDistinct
, countDistinct
,
n_distinct
; first
,
first
; last
,
last
; max
;
mean
; min
;
sumDistinct
, sumDistinct
;
sum
## 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)
## Not run: count(df$c)