tidyName | R Documentation |
Remove spaces, punctuation, and capitalization from a string.
tidyName(x, fixes = c("_", ".", " ", "-", ">"), case = c("lower", "upper", "nochange"))
x |
The string to be modified. |
fixes |
Optional; a vector of all characters to be removed. |
case |
Optional; the case to which all characters in the string will be changed. There are three options: |
By default, underscores (_), periods (.), spaces ( ), dashes (-) and right angle bracket (>) will be removed from the string, and the string will be converted to all lowercase.
This function was intended for use in standardizing voucher names in make.unique.vouchers
, so that punctuation, spacing, and capitalization differences in sequence metadata does not prevent the grouping of multiple sequences to a single specimen voucher (ie: Hipp_2016 vs. HIPP2016).
The modified string is returned.
Andrew Hipp and Kasey Pham
make.unique.vouchers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.