Description Usage Arguments Value Examples
Occurance Count of Substrings
1 | fop_string_mat_count(string, names = FALSE, tri.lower = TRUE)
|
string |
A character string with elements that are substrings of other elements |
names |
Shall the matrix have row/colmun names? |
tri.lower |
Shall only the lower triangle have non-zero values? |
A squared matrix with row/column number equal the length of the input string
1 2 3 4 5 | library(tpfuns)
a <- c("property plant and equipment", "plant and equipment", "plant")
fop_string_mat_count(a)
fop_string_mat_count(a, TRUE)
fop_string_mat_count(a, TRUE, FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.