View source: R/extract_prefix.R
extract_prefix | R Documentation |
Extract prefixes from names, presumably colnames. For example, the prefix of "x.p"
would be "x"
.
extract_prefix(nm, suffix = "p", sep = ".")
nm |
Character vector of names to search. |
suffix |
Character string to search for at end of |
sep |
Separator in |
A character vector of prefixes. If there is no prefix and no sep, NA
is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.