Compute correlation matrix
ml_corr(x, columns = NULL, method = c("pearson", "spearman"))
A tbl_spark
.
The names of the columns to calculate correlations of. If only one
column is specified, it must be a vector column (for example, assembled using
ft_vector_assember()
).
The method to use, either "pearson"
or "spearman"
.
A correlation matrix organized as a data frame.