I have a dataframe like this: pta corpus
Each row of pta_content is the contents of preferential trade agreements. I'm trying to calculate the similarities between each row and obtain a similarity matrix with the name of pta.
I have tried stringdist, it seems that stringdist is used for two dataframes. how can i calculate the pairwise similarities between each row within a dataframe?