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 %hasSuffix% suffix
|
x |
[character] The string or strings in which to look. |
suffix |
[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 ("_"
), %hasSuffix%
offers an easy way to select the interesting bit of the table by the last segment.
[logical] TRUE
iff x
ends with suffix
.
1 2 | "loans.tsv" %hasSuffix% ".tsv"
c("aba","abb","abc") %hasSuffix% "[bc]"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.