Description Usage Arguments Details Value Examples
View source: R/prefix_operation.R
Extract and return the word prefix based on a string separator
1 | extract_prefix(word, separator)
|
word |
string, the word from which the prefix is to be extracted. |
separator |
string, the separator between the prefix and the word. |
extract_prefix split a word an returns the word prefix based on a string.
returns the word prefix.
1 2 3 4 5 | str <- "abc"
extract_prefix(str, "b")
str <- "B_column"
prefix <- extract_prefix(str, "_")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.