Description Usage Arguments Value Examples
A function for computing chi-square distances.
1 2 3 | dist_chisquare(x, diag = FALSE, upper = FALSE)
dist_chisq(x, diag = FALSE, upper = FALSE)
|
x |
A numeric matrix (containing coordinates). |
diag |
Logical specifying whether the diagonal of the resulting distance matrix should be printed. |
upper |
Logical specifying whether the upper triangle of the resulting distance matrix should be printed. |
A distance matrix.
1 2 3 4 5 | SndT_Fra <- read.table(system.file("extdata", "SndT_Fra.txt", package = "svs"),
header = TRUE, sep = "\t", quote = "\"", encoding = "UTF-8",
stringsAsFactors = FALSE)
tab.SndT_Fra <- table(SndT_Fra)
dist_chisquare(tab.SndT_Fra)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.