count {SparkR}R Documentation

count

Description

Aggregate function: returns the number of items in a group.

Aggregate function: returns the number of items in a group.

Usage

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

## S4 method for signature 'Column'
n(x)

n(x)

See Also

Other agg_funcs: agg, summarize; approxCountDistinct, approxCountDistinct, approxCountDistinct; avg, avg; countDistinct, countDistinct, n_distinct, n_distinct; first, first; kurtosis, kurtosis; last, last; max; mean; min; sd, sd, stddev, stddev; skewness, skewness; stddev_pop, stddev_pop; stddev_samp, stddev_samp; sumDistinct, sumDistinct; sum; var_pop, var_pop; var_samp, var_samp; var, var, variance, variance

Examples

## Not run: count(df$c)
## Not run: n(df$c)

[Package SparkR version 1.6.3 Index]