print tidy_dist_mat objects
# S3 method for tidy_dist_mat print(x, ..., n = NULL)
x | tidy_dist_mat object |
---|---|
... | (like |
n | maximum number of rows or columns of x to print |
inner_data <- data.frame(x = rnorm(3), y = rnorm(3)) my_dist_mat <- as.matrix(dist(inner_data)) rownames_df <- data.frame(id = 1:3) colnames_df <- data.frame(id = c(1,2,1), id2 = c("f", "f", "s")) my_tidy_dm <- tidy_dist_mat(my_dist_mat, rownames_df, colnames_df) print(my_tidy_dm)#> id #> id | 1 2 1 #> id2 | f f s #> - + ------- ------- ------- #> 1 | 0 0.589213 0.727783 #> 2 | 0.589213 0 1.11849 #> 3 | 0.727783 1.11849 0