check_cost_defined | R Documentation |
Check whether there's missing characters in the cost matrix and return the missing characters.
check_cost_defined(data, cost_mat, delim = "")
data |
DataFrame to be computed. |
cost_mat |
Cost matrix to be checked. |
delim |
The delimiter separating atomic symbols. |
A string vector containing the missing characters, empty indicating there's no missing characters.
df <- as.data.frame(rbind(a=c("a_bc_d","d_bc_a"),b=c("b_bc_d","d_bc_a")))
cost.mat <- data.frame()
chars.not.found <- check_cost_defined(df, cost.mat, "_")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.