JToSentence | R Documentation |
Similar to calling 'paste(v, collapse = ", ")' except that the conjuction (" and " by default) is used as the final separator.
JToSentence(v, sep = ", ", conjunction = " and ")
v |
Vector of values. |
sep |
Separator to use between the first elements of the list. |
conjunction |
Value to use before the last element in the list. |
print(JToSentence(c("apple", "banana", "mandarin", "mango")))
# => [1] "apple, banana, mandarin and mango"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.