sdf_crosstab

0th

Percentile

Cross Tabulation

Builds a contingency table at each combination of factor levels.

Usage
sdf_crosstab(x, col1, col2)
Arguments
x

A Spark DataFrame

col1

The name of the first column. Distinct items will make the first item of each row.

col2

The name of the second column. Distinct items will make the column names of the DataFrame.

Value

A DataFrame containing the contingency table.

Aliases
  • sdf_crosstab
Documentation reproduced from package sparklyr, version 1.0.2, License: Apache License 2.0 | file LICENSE

Community examples

Looks like there are no examples yet.