Wrapper for hierarchical clustering and Multi-Dimensional Scaling (MDS)
to_dist_mtx(df, paper_cols = c("paper1", "paper2"))
run_hclust(df, method = "ave")
run_mds(df, paper_cols = c("paper1", "paper2"))
Arguments
- df
A dataframe.
- paper_cols
Optional. A character vector of length 2 specifying the column names for the papers being compared.
- method
see [hclust] for details.
Value
A distance matrix object of class `"dist"`.