powered by
Check whether there's missing characters in the cost matrix and return the missing characters.
check_cost_defined(data, cost_mat, delim = "")
A string vector containing the missing characters, empty indicating there's no missing characters.
DataFrame to be computed.
Cost matrix to be checked.
The delimiter separating atomic symbols.
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, "_")
Run the code above in your browser using DataLab