sdf_crosstab | R Documentation |
Builds a contingency table at each combination of factor levels.
sdf_crosstab(x, col1, col2)
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. |
A DataFrame containing the contingency table.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.