fop_string_mat_count: Occurance Count of Substrings

Description Usage Arguments Value Examples

Description

Occurance Count of Substrings

Usage

1
fop_string_mat_count(string, names = FALSE, tri.lower = TRUE)

Arguments

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?

Value

A squared matrix with row/column number equal the length of the input string

Examples

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)

M-U-UNI-MA/tpfunctions documentation built on May 24, 2019, 7:37 a.m.