Naghmeh
Naghmeh

Reputation: 1

Transpose data frame in sparklyr to use ml_corr on rows

I would like to make a similarity matrix of a big data for spectral clustering. To do so I am going to use ml_corr in sparklyr.

The problem is that ml_corr does the correlation on the pairwise columns, while I want to do it on rows. my option is to transpose my sparklyr table data but I couldn't find any function to do it and would appreciate your help if you know how to do it.

Upvotes: 0

Views: 539

Answers (0)

Related Questions