Description Usage Arguments Details Value See Also Examples
Within soundcorrs, primarily intended to extract rows and columns from contingency tables. Other than that, of general applicability.
1 | x %hasPrefix% prefix
|
x |
[character] The string or strings in which to look. |
prefix |
[character] The string to look for. May be a regular expression. |
Contingency tables, such as produced by coocc and summary, can get quite sizeable and therefore difficult to read with larger datasets. Since both their column and row names are composed from individual segments connected by an underscore ("_"), %hasPrefix% offers an easy way to select the interesting bit of the table by the first segment.
[logical] TRUE iff x begins with prefix.
1 2 | "loans.tsv" %hasPrefix% "loans"
c("abc","bbc","cbc") %hasPrefix% "[bc]"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.