rangelist | R Documentation |
concatenates elements of a vector with options for quotes and delimiter. mimics the rangelist function that I created in vba
rangelist(x, quotes = TRUE, delimiter = ", ", print_only = FALSE)
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 |
rangelist_function()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.