comma.list | R Documentation |
Often for nice presentation of error messages you wish to display a list of values. This adds commas between entries and will truncate the list above a length of 50 items with an ellipsis. Very simple but convenient function.
comma.list(X)
X |
a vector to be displayed |
string with entries separated by commas, and if long, entries skipped indicated by an ellipsis.
comma.list(1:100) cat("The following entries were ignored: ", comma.list(c(1,7,10:14)), "\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.