rangelist: rangelist conversion function

View source: R/format.R

rangelistR Documentation

rangelist conversion function

Description

concatenates elements of a vector with options for quotes and delimiter. mimics the rangelist function that I created in vba

Usage

rangelist(x, quotes = TRUE, delimiter = ", ", print_only = FALSE)

Arguments

x

is the vector containing the elements to be concatenated

quotes

boolean variable determining if each element should be surrounded by quotes (TRUE). the default for this argument is TRUE

delimiter

string argument of what the delimiter should be betweeen elements. the defualt for this agrument is ", "

print_only

whether the output should simply be written to the console unsing the base 'cat' function or should be stored as a value for later use. Default is FALSE indicating that it should be a value for later use

Examples

rangelist_function()

clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.