Description Usage Arguments Value Note See Also Examples
Computes the Pearson Correlation Coefficient for two Columns.
1 2 3 4 5 6 7 |
x |
a Column or a SparkDataFrame. |
... |
additional argument(s). If |
col2 |
a (second) Column. |
colName1 |
the name of the first column |
colName2 |
the name of the second column |
method |
Optional. A character specifying the method for calculating the correlation. only "pearson" is allowed now. |
The Pearson Correlation Coefficient as a Double.
corr since 1.6.0
corr since 1.6.0
Other aggregate functions:
avg()
,
column_aggregate_functions
,
count()
,
cov()
,
first()
,
last()
Other stat functions:
approxQuantile()
,
cov()
,
crosstab()
,
freqItems()
,
sampleBy()
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.