n {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

n(x)

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

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

See Also

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

Examples

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

[Package SparkR version 2.0.0 Index]