Skip to contents

Paste name components together in order specified by paste_side

Usage

.paste_names(prefix_suffix, tabnames, sep = ".", paste_side = "right")

Arguments

prefix_suffix

vector of padded numbers

tabnames

vector of tab/sheet names

sep

separator characters

paste_side

'right' or 'left', the side to attach the unique numbering to

Value

a vector of glued tabnames

Examples

xlr:::.paste_names('--1', c('hello','goodbye'))
#> [1] "hello.--1"   "goodbye.--1"
xlr:::.paste_names('..1', c('hello','goodbye'), '->', 'left')
#> [1] "..1->hello"   "..1->goodbye"
xlr:::.paste_names(NA, c('hello','goodbye'), '->', 'left')
#> [1] "NA->hello"   "NA->goodbye"