generate_default_cost_matrix | R Documentation |
generate a default cost matrix contains all possible characters in the raw data with all diagonal values set to 0 and others set to 1. This avoids you constructing the matrix from scratch.
generate_default_cost_matrix(data, delim = "")
data |
DataFrame to be computed. |
delim |
The delimiter separating atomic symbols. |
Cost matrix contains all possible characters in the raw data with all diagonal values set to 0 and others set to 1.
df <- as.data.frame(rbind(a=c("a_bc_d","d_bc_a"),b=c("b_bc_d","d_bc_a")))
default.cost <- generate_default_cost_matrix(df, "_")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.