makeLabel: makeLabel Convert a vector of numbers or strings into a...

View source: R/cpuefuncs.r

makeLabelR Documentation

makeLabel Convert a vector of numbers or strings into a single label

Description

makeLabel Convert a vector of numbers of strings into a single label

Usage

makeLabel(invect, insep = "_")

Arguments

invect

the vector of numbers or strings to be converted into a single string.

insep

defaults to '_' but can be any selected character used to separate each value

Value

a character string containing the invect as a single string.

Examples

## Not run: 
 x <- c(1,2,3,4,5)
 makeLabel(x)
 makeLabel(x,"-")

## End(Not run)

haddonm/rforcpue documentation built on Oct. 12, 2024, 11:55 p.m.