Learn R Programming

oce (version 0.9-20)

unduplicateNames: Rename duplicated items (used in reading CTD files)

Description

Rename items to avoid name collision, by appending a 2 to the second occurrence of a name, etc.

Usage

unduplicateNames(names)

Arguments

names
Vector of strings with variable names.

Value

names Vector of strings with numbered variable names.

See Also

used by read.ctd.sbe.

Examples

Run this code
unduplicateNames(c("a", "b", "a", "c", "b"))

Run the code above in your browser using DataLab