View source: R/read_dist_matrix.R
read_dist_matrix | R Documentation |
Read a distance matrix from a comma-separated vector (CSV) file. The file is assumed to be a square table with rows and columns for the same set of witnesses in the same order. The first column and row is taken to be witness names. Table elements are treated as numeric. (Each element of the diagonal should be zero.)
read_dist_matrix(fn)
fn |
A file name, which can be a URL. |
This is a wrapper for utils::read.csv.
A square matrix.
x <- read_dist_matrix("https://zenodo.org/record/6505843/files/Acts.UBS2.dist.csv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.