unduplicateNames | R Documentation |
Append numeric suffices to character strings, to avoid repeats. This is used by various data input functions, to handle the fact that several oceanographic data formats permit the reuse of variable names within a given file.
unduplicateNames(strings, style = 1)
strings |
Vector of character strings. |
style |
An integer giving the style. If |
Vector of strings with repeats distinguished by suffix.
This is used in several functions, e.g. read.ctd.sbe()
and read.odf()
.
unduplicateNames(c("a", "b", "a", "c", "b"))
unduplicateNames(c("a", "b", "a", "c", "b"), style = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.