powered by
Helper function to generate an empty similarity matrix based on header of individual data file
gen_path_mat(x, diag = T)
The data file
Whether diagonal elements should exist
Empty matrix with named rows and columns corresponding to individual data files
# NOT RUN { gen_path_mat(data.frame(V1 = rnorm(10, 0, 1), V2 = rnorm(10, 0, 1))) # }
Run the code above in your browser using DataLab